在liferay6中部署extjs6应用程序时获取空白页面?

时间:2018-03-07 11:57:38

标签: javascript extjs deployment liferay portlet

尝试部署Extjs Applicaiton在Liferay中获取空白portlet时不确定是什么问题可以有人告诉我当前在哪里添加js文件我将它们添加到.html文件中我也尝试在Liferay-Portal.xml中添加它们。所有文件需要添加到这些位置的另一件事我正在添加App.jsMain.jsext-all.js

以下是我在liferay-portal-xml中添加的文件。 在此之前,我还尝试在index.jsp

中添加所有文件

<?xml version="1.0"?>

<liferay-portlet-app>
	<portlet>
		<portlet-name>d1523bb0-7f00-0001-4cfb-83e75e3cc848</portlet-name>
		<requires-namespaced-parameters>false</requires-namespaced-parameters>
		<icon>/img/task_list.png</icon>
		<instanceable>false</instanceable>
               <header-portlet-css></header-portlet-css>
               <footer-portlet-javascript>/examplecalculator/ext-all-debug.js</footer-portlet-javascript>
  <footer-portlet-javascript>/examplecalculator/app.js</footer-portlet-javascript>
 
   <footer-portlet-javascript>/examplecalculator/theme-crisp-debug.js</footer-portlet-javascript>
   <footer-portlet-javascript>/examplecalculator/app/view/main/Main.js</footer-portlet-javascript>
   <footer-portlet-javascript>/examplecalculator/app/view/main/MainModel.js</footer-portlet-javascript>
   <footer-portlet-javascript>/examplecalculator/app/view/main/MainController.js</footer-portlet-javascript>


		<user-principal-strategy>screenName</user-principal-strategy>
		<private-request-attributes>false</private-request-attributes>
		<active>true</active>
	</portlet>
</liferay-portlet-app>

1 个答案:

答案 0 :(得分:0)

根据documentation for <footer-portlet-javascript>(强调我的):

  

设置将在页面的页脚中相对于portlet的上下文路径引用的JavaScript路径。

e.g。声明中的examplecalculator/并不属于那里。

相关问题