Hello
I create a portlet with a preference in portlet.xml, and deploy it successfully on JBoss
Portlet Container.
The xml for this porlet is following:
<portlet>
| <description>PreferencesPortlet</description>
| <portlet-name>PreferencesPortlet</portlet-name>
| <display-name>PreferencesPortlet</display-name>
| <portlet-class>it.portlet.PreferencesPortlet</portlet-class>
| <expiration-cache>0</expiration-cache>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| <portlet-mode>EDIT</portlet-mode>
| </supports>
| <portlet-preferences>
| <preference>
| <name>userName</name>
| <value>Mark</value>
| <read-only>false</read-only>
| </preference>
|
<preferences-validator>it.validator.UserNameValidator</preferences-validator>
| </portlet-preferences>
| <portlet-info>
| <title>Portlet Preferences</title>
| <short-title>PreferencesPortlet</short-title>
| </portlet-info>
| </portlet>
|
It works fine but when i change the value of preference value in xml it does not reflect
it, I try to modify the preference in runtime but when i read the value of the preference
in runtime it always show old value. I know that i can edit this value using protlet api,
using setValue() method and store() method, but I want know why this doesn't work in
my portlet.
Thanks in advance
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163513#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...