2017-05-11 1 views
0

私は新しいliferay osgiモジュールを作成しました。プロパティLiferay 7 CE - Osgiモジュール(liferay mvc portlet)はjavascriptファイルをロードしません

com.liferay.portlet.footer-ポートレットのJavaScript

のみ、それをすべてのjsファイルをロードしていませんが

@Component(
immediate = true, 
property = { 
    "com.liferay.portlet.display-category=Bla Modules", 
    "com.liferay.portlet.instanceable=true", 
    "javax.portlet.display-name=EventCalendar", 
    "javax.portlet.init-param.template-path=/", 
    "javax.portlet.expiration-cache=0", 
    "com.liferay.portlet.footer-portlet-javascript=fullcalendar_year.js,/js/custom/main.js", 
    "com.liferay.portlet.header-portlet-css=/css/fullcalendar_year.css,/css/fullcalendar.css", 
    "javax.portlet.init-param.view-template=/view.jsp", 
    "javax.portlet.resource-bundle=content.Language", 
    "javax.portlet.security-role-ref=administrator,power-user,user" 
}, 
service = Portlet.class 

: 私のコントローラには、次のタグを持っていますファイルが1つだけ呼び出された場合、ファイルがロードされます。

これはバグですか、何か間違っていますか?

答えて

2

最後に解決策が見つかりました。 別々の行で宣言する必要があります。

property = { 
    "com.liferay.portlet.display-category=XXXXAA Modules", 
    "com.liferay.portlet.instanceable=true", 
    "javax.portlet.display-name=XXXXAA", 
    "javax.portlet.init-param.template-path=/", 
    "javax.portlet.expiration-cache=0", 
    "com.liferay.portlet.footer-portlet-javascript=/js/moment.min.js", 
    "com.liferay.portlet.footer-portlet-javascript=/js/fullcalendar_year.js", 
    "com.liferay.portlet.footer-portlet-javascript=/js/calendarLanguages/pt.js", 
    "com.liferay.portlet.footer-portlet-javascript=/js/custom/main.js", 
    "com.liferay.portlet.header-portlet-css=/css/fullcalendar_year.css,/css/fullcalendar.css", 
    "javax.portlet.init-param.view-template=/view.jsp", 
    "javax.portlet.resource-bundle=content.Language", 
    "javax.portlet.security-role-ref=administrator,power-user,user" 
} 
関連する問題