Liferay 控制面板portlet的配置页面未出现
我已经创建了一个运行良好的Liferay控制面板portlet。 现在我想添加一个配置页面。我做了如下工作:Liferay 控制面板portlet的配置页面未出现,liferay,liferay-6,control-panel,Liferay,Liferay 6,Control Panel,我已经创建了一个运行良好的Liferay控制面板portlet。 现在我想添加一个配置页面。我做了如下工作: 将配置模板init参数添加到portlet.xml 将配置操作类添加到liferay-portlet.xml 但是,配置菜单不会出现: 以下是两个描述符 portlet.xml <portlet> <portlet-name>manage-apples-portlet</portlet-name> <display-name&g
<portlet>
<portlet-name>manage-apples-portlet</portlet-name>
<display-name>Apple Management Admin</display-name>
<portlet-class>de.apples.portlet.ManageApplesPortlet</portlet-class>
<init-param>
<name>config-template</name>
<value>/html/manage-apples-portlet/config.jsp</value>
</init-param>
<init-param>
<name>view-jsp</name>
<value>/html/manage-apples-portlet/view.jsp</value>
</init-param>
<init-param>
<name>jsp-path</name>
<value>/html/manage-apples-portlet/</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>content.Language</resource-bundle>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet>
<portlet-name>manage-apples-portlet</portlet-name>
<icon>/icon.png</icon>
<configuration-action-class>com.liferay.portal.kernel.portlet.DefaultConfigurationAction</configuration-action-class>
<control-panel-entry-category>content</control-panel-entry-category>
<control-panel-entry-weight>10.0</control-panel-entry-weight>
<instanceable>false</instanceable>
<css-class-wrapper>manage-apples-portlet</css-class-wrapper>
</portlet>
管理苹果portlet
苹果管理管理员
de.apples.portlet.ManageApplesPortlet
配置模板
/html/manageappleportlet/config.jsp
查看jsp
/html/manageappleportlet/view.jsp
jsp路径
/html/manageappleportlet/
0
文本/html
内容、语言
管理员
超级用户
用户
liferayportlet.xml
<portlet>
<portlet-name>manage-apples-portlet</portlet-name>
<display-name>Apple Management Admin</display-name>
<portlet-class>de.apples.portlet.ManageApplesPortlet</portlet-class>
<init-param>
<name>config-template</name>
<value>/html/manage-apples-portlet/config.jsp</value>
</init-param>
<init-param>
<name>view-jsp</name>
<value>/html/manage-apples-portlet/view.jsp</value>
</init-param>
<init-param>
<name>jsp-path</name>
<value>/html/manage-apples-portlet/</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>content.Language</resource-bundle>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet>
<portlet-name>manage-apples-portlet</portlet-name>
<icon>/icon.png</icon>
<configuration-action-class>com.liferay.portal.kernel.portlet.DefaultConfigurationAction</configuration-action-class>
<control-panel-entry-category>content</control-panel-entry-category>
<control-panel-entry-weight>10.0</control-panel-entry-weight>
<instanceable>false</instanceable>
<css-class-wrapper>manage-apples-portlet</css-class-wrapper>
</portlet>
管理苹果portlet
/icon.png
com.liferay.portal.kernel.portlet.DefaultConfigurationAction
内容
10
假的
管理苹果portlet
我遗漏了什么吗?在第一个视图中,我在support元素中没有看到portlet模式,我认为您应该添加
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
视图
编辑
在portlet.xml的supports元素中。在第一个视图中,我在support元素中没有看到portlet模式,我认为您应该添加
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
视图
编辑
内部支持portlet.xml的元素。谢谢。成功了!(有时你看不到简单的事情。)谢谢。成功了!(有时你看不到简单的事情。)