Deployment maincontroller.js mainmodel.js未从extjs 6加载到liferay中?

Deployment maincontroller.js mainmodel.js未从extjs 6加载到liferay中?,deployment,liferay,liferay-6,extjs6,Deployment,Liferay,Liferay 6,Extjs6,在此之前,我无法添加这两个文件,因为它没有添加main.js,所以我在index.html中添加了main.js 所需的JavaScript或CSS资源可以在liferay-portlet.xml中随portlet声明性一起加载 它应该是这样的: <portlet> <portlet-name>YourPortletNeedingAJSresource</portlet-name> <icon>/icon.png</icon

在此之前,我无法添加这两个文件,因为它没有添加main.js,所以我在index.html中添加了main.js


所需的JavaScript或CSS资源可以在liferay-portlet.xml中随portlet声明性一起加载

它应该是这样的:

<portlet>
    <portlet-name>YourPortletNeedingAJSresource</portlet-name>
    <icon>/icon.png</icon>
    <header-portlet-css>/css/main.css</header-portlet-css>
    <footer-portlet-javascript>/app/view/main/Main.js</footer-portlet-javascript>
</portlet>

路径/app/view/main/main.js是根据你的截图猜测出来的。它应该根据您的项目结构进行调整。

请阅读-总结是,这不是一种向志愿者致辞的理想方式,可能会对获得答案产生反作用。请不要将此添加到您的问题中。我使用的是liferay 6.2.5