[
https://issues.jboss.org/browse/GTNPORTAL-1987?page=com.atlassian.jira.pl...
]
Chris Laprun updated GTNPORTAL-1987:
------------------------------------
Description:
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"
was:
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"
Component/s: PC integration
(was: Java API)
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
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.
For more information on JIRA, see:
http://www.atlassian.com/software/jira