Author: thomas.heute(a)jboss.com
Date: 2009-07-22 09:28:29 -0400 (Wed, 22 Jul 2009)
New Revision: 13586
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java
Log:
JBEPP-92: Exception while calling removePublicRenderParameter on
javax.portlet.actionResponse
[tentative fix, need proper testing]
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java 2009-07-22
13:17:50 UTC (rev 13585)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/main/org/jboss/portal/core/controller/portlet/ControllerResponseFactory.java 2009-07-22
13:28:29 UTC (rev 13586)
@@ -51,6 +51,7 @@
import java.io.ByteArrayInputStream;
import java.io.StringReader;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.Map;
/**
@@ -94,8 +95,18 @@
Map<String, String[]> parameters = new HashMap<String,
String[]>(stringMap);
- parameters.putAll(renderResult.getPublicNavigationalStateUpdates());
-
+ Map<String, String[]> test =
renderResult.getPublicNavigationalStateUpdates();
+
+ Iterator<Map.Entry<String, String[]>> it =
test.entrySet().iterator();
+ while (it.hasNext())
+ {
+ Map.Entry<String, String[]> entry = it.next();
+ if (entry.getValue().length != 0)
+ {
+ parameters.put(entry.getKey(), entry.getValue());
+ }
+ }
+
if (pns != null)
{
//
Show replies by date