Liferay 7 CE-Osgi模块(Liferay mvc portlet)未加载javascript文件

Liferay 7 CE-Osgi模块(Liferay mvc portlet)未加载javascript文件,javascript,osgi,portlet,liferay-7,Javascript,Osgi,Portlet,Liferay 7,我创建了一个新的liferay osgi模块。 我的控制器具有以下标记: @Component( immediate = true, property = { "com.liferay.portlet.display-category=Bla Modules", "com.liferay.portlet.instanceable=true", "javax.portlet.display-name=EventCalendar", "javax.portlet.in

我创建了一个新的liferay osgi模块。 我的控制器具有以下标记:

@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
然而,财产

com.liferay.portlet.footer-portlet-javascript

不是加载所有的js文件,如果只调用了一个,则只加载文件,如果不止一个,则不加载任何内容


这是一个bug还是我做错了什么?

我终于找到了解决方案。 它必须在单独的行中声明

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"
}

最后我找到了解决办法。 它必须在单独的行中声明

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"
}

是否可以使用下面的“com.liferay.portlet.footerportletjavascript=/js/main.[a-zA-Z]{2}\\d{5}[a-zA-Z]{1}\\d{1}.chunk.js”这样的正则表达式发送动态“js或css”路径,是否可以使用下面的正则表达式发送动态“js或css”路径“com.liferay.portlet.footerportletjavascript=/js/main.[a-zA-Z]{2}\\d{5}[a-zA-Z]{1}\\d{1}.chunk.js”,