[
https://issues.jboss.org/browse/GTNPORTAL-1987?page=com.atlassian.jira.pl...
]
donino doninos commented on GTNPORTAL-1987:
-------------------------------------------
That's pretty strange, gatein will be the only J2EE portal where we can't update
preferences through serveResource. Both Jahia, Websphere, Liferay and even Apache Pluto
support this key feature. The full page refresh on each action request is prohibitive for
many kind of portlets. Difficult to understand but you probably have good reasons.
PortletPreferences.store() has no effect in a serveResource
-----------------------------------------------------------
Key: GTNPORTAL-1987
URL:
https://issues.jboss.org/browse/GTNPORTAL-1987
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: PC integration
Affects Versions: 3.1.0-GA, 3.2.0-M01
Environment: tomcat6 & tomcat7
windows 7
Reporter: donino doninos
Assignee: Minh Hoang TO
Labels: portal-s64
Portlet method "serveResource" method is fired when ajax requests a resource.
A code as below works in "processAction" method, but in serveResource
PortletPreferences.store() statement doesnt seem has any effect: preferences are not
stored in database.
String mypreference= request.getParameter("mypreference");
PortletPreferences portletPreference = request.getPreferences();
portletPreference.setValue("mypreference", mypreference);
portletPreference.store();
Specifications 286 authorize update preferences in serveResource method (PLT.13.1):
"For serveResource calls only state changes to non-shared state, like the portlet
session scope or portlet preferences, should be performed"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira