Author: mwringe
Date: 2009-10-27 14:43:02 -0400 (Tue, 27 Oct 2009)
New Revision: 434
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java
Log:
Handle public render parameters (GTNPORTAL-118).
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java 2009-10-27
02:00:59 UTC (rev 433)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortlet.java 2009-10-27
18:43:02 UTC (rev 434)
@@ -601,6 +601,7 @@
HttpServletRequest servletRequest = prc.getRequest();
HashMap<String, String[]> allParams = new HashMap<String, String[]>();
allParams.putAll(servletRequest.getParameterMap());
+ allParams.putAll(this.getPublicParameters());
if (type.equals(ActionInvocation.class))
{
ActionInvocation actionInvocation = new ActionInvocation(pic);
@@ -667,8 +668,7 @@
invocation.setWindowState(org.gatein.pc.api.WindowState.create(getCurrentWindowState().toString()));
// Public navigational state
- invocation.setPublicNavigationalState(allParams);
-
+ invocation.setPublicNavigationalState(this.getPublicParameters());
//
StatefulPortletContext<C> preferencesPortletContext = getPortletContext();
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java 2009-10-27
02:00:59 UTC (rev 433)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java 2009-10-27
18:43:02 UTC (rev 434)
@@ -150,9 +150,7 @@
*/
//
- Map<String, String[]> map =
-
StateString.decodeOpaqueValue((navStateResponse.getNavigationalState()).getStringValue());
- uiPortlet.setRenderParametersMap(map);
+
uiPortlet.setRenderParametersMap(navStateResponse.getPublicNavigationalStateUpdates());
//
/*
Show replies by date