将依赖关系问题发送到MVC spring Liferay portlet后,我尝试从头开始重建它。
现在大部分都可以,但portlet首选项。 它曾经用于以前的portlet,但不适用于从头开始构建的portlet。 我已经正确设置了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>
这部分作为&#34;配置&#34;当我单击portlet的右上角时,现在可以使用该选项。
Portlet.xml包括:
<init-param>
<name>config-template</name>
<value>/WEB-INF/jsp/config/config2.jsp</value>
</init-param>
我还将正在正常工作的前jsp复制到新项目中。 它确实正确加载。当我单击&#34; configuration&#34;时,所有System.out.println都正确地显示在控制台输出中),但是没有出现设置窗口,因此不显示html元素。 我得到的只是尝试加载窗口的portlet页面,但它永远不会打开。
是否还包含其他文件,我可能没有正确重新安装?
答案 0 :(得分: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中删除它时,一切都有效。 对我自己;) 希望能节省别人的时间......