0

Following dependencies issues into a MVC spring Liferay portlet, I tried to rebuild it from scratch.

Most of it is now OK but the portlet preferences. It used to work on the former portlet but does not on the built from scratch portlet. I have correctly set Liferay-portlet.xml:

<configuration-action-class> com.<packagename>.<subpackagename>.config.ConfigurationActionImpl</configuration-action-class>

Same results with default class:
<configuration-action-class>com.liferay.portal.kernel.portlet.DefaultConfigurationAction</configuration-action-class>

This part works as the "configuration" option is now available when I click the right top corner of the portlet.

Portlet.xml includes :

<init-param>
        <name>config-template</name>
        <value>/WEB-INF/jsp/config/config2.jsp</value>
    </init-param>

I also copied the former jsp that was working correctly into the new project. It does load properly. When I click "configuration", all of the System.out.println are correctly displayed into the console output), but the setup window does not appear and thus the html elements are not displayed. All I get is the portlet page attempting to load a window but it never opens.

Are there any other files included that I might not have re-setupped properly?

4

1 回答 1

0

是由这个引起的:

<link href="<c:url value="/css/bootstrap.css"/>" rel="stylesheet">
<link href="<c:url value="/css/bootstrap.min.css"/>" rel="stylesheet">
<link href="<c:url value="/css/bootstrap-theme.css"/>" rel="stylesheet">
<link href="<c:url value="/css/bootstrap-theme.min.css"/>"
    rel="stylesheet">

当我从 jsp 中删除它时,一切都会再次运行。感谢我自己;)希望它能节省别人的时间......

于 2015-10-16T16:30:56.070 回答