我试图增强一个“简单的”应用程序,该应用程序将简单的jsps与某些Web组件一起使用,但是它根本无法正常工作。这是否完全有效,还是我必须以某种方式包含Web组件的javascript代码?
该应用程序在具有JEE7的Payara 5.192上运行。
example.jsp
<head>
<script type="module" src="<%=Globals.getProperty("DIR_JSP")%>/javascript/node_modules/my-web-component/master-detail.js" />
</head>
<body>
<% funny inline java code %>
<master-detail detailsWidth="90">My content to be shown in the details view<master-detail>
</body>