1
我有一个如下所示的portlet。Liferay Portlet首选项设置更改
我试图通过单击选项 - >默认首选项来更改liferay中的portlet首选项,然后它给我选择不同的文件,然后我选择不同的文件,然后单击设置首选项按钮,页面会刷新,但是当我点击选项 - >默认偏好我看到原来的一个不是我之前选择的那个。
所以问题是我不能够改变默认的首选项(注:我已经用管理员用户登录)。
它与 偏好设置有什么关系 - 公司范围内的实例化属性? 我正在尝试不同的组合,但没有任何作用。 什么是配置,默认首选项和首选项选项?因为在某些示例中,我已经看到它们使用配置选项来更改首选项,有没有关于这些的任何文档?我在改变偏好方面遇到困难。
注:我使用的Liferay 6.2
<portlet>
<description>Sample</description>
<portlet-name>Sample</portlet-name>
<display-name>Sample</display-name>
<portlet-class>com.sample.SampleCode</portlet-class>
<init-param>
<name>jspView</name>
<value>/jsp/CustomView.jsp</value>
</init-param>
<init-param>
<name>jspEdit</name>
<value>/jsp/CustomEdit.jsp</value>
</init-param>
<!-- <expiration-cache>-1</expiration-cache> -->
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
<portlet-mode>config</portlet-mode>
<portlet-mode>edit_defaults</portlet-mode>
<portlet-mode>editpage</portlet-mode>
</supports>
<portlet-info>
<title>Sample Portlet</title>
</portlet-info>
<portlet-preferences>
<preference>
<name>portletPreference</name>
<value>sites/test/test.page</value>
</preference>
</portlet-preferences>
我加了上面的条目,但仍无法改变偏好。 – Kalai
你可以在这里验证你的步骤吗? http://www.liferaysolution.com/2012/05/add-configuration-page-in-plugin.html –
谢谢Ankit,问题在于命名空间。 param1”type =“hidden”../>并且在我的流程动作方法中,我们喜欢request.getParameter(response.getNamespace()+“param1”);如果我说request.getParameter(“param1”),那么它工作正常..但我想知道如果您使用
Kalai