[英]Getting blank page while deploying extjs6 application in liferay6?
當嘗試部署Extjs Applicaiton在Liferay中獲得空白portlet時,不確定是什么問題可以有人告訴當前在哪里添加js文件。我正在將它們添加到.html文件中,也嘗試將它們全部添加到Liferay-Portal.xml
。 所有文件需要添加到這些位置的另一件事是我添加App.js
, Main.js
, ext-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>
根據<footer-portlet-javascript>
的文檔 (重點是我的):
設置將在頁面頁腳中引用的JavaScript 相對於portlet上下文路徑的路徑。
例如,聲明中的examplecalculator/
不屬於此處。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.