Author: mwringe
Date: 2010-10-22 01:28:18 -0400 (Fri, 22 Oct 2010)
New Revision: 4763
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/ResourceHandler.java
Log:
GTNWSRP-60: add the form parameters from the resource invocation to the resourceParam.
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/ResourceHandler.java
===================================================================
---
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/ResourceHandler.java 2010-10-21
19:14:55 UTC (rev 4762)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/ResourceHandler.java 2010-10-22
05:28:18 UTC (rev 4763)
@@ -126,6 +126,15 @@
resourceParams.setClientData(params.getClientData());
resourceParams.setResourceCacheability(WSRPUtils.getResourceCacheabilityFromCacheLevel(invocation.getCacheLevel()));
+ for (Map.Entry<String, String[]> entry : invocation.getForm().entrySet())
+ {
+ String name = entry.getKey();
+ for (String value : entry.getValue())
+ {
+
resourceParams.getFormParameters().add(WSRPTypeFactory.createNamedString(name, value));
+ }
+ }
+
StateString resourceState = invocation.getResourceState();
if (resourceState != null)
{
Show replies by date