cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: rev 56674 - cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation
Date Fri, 05 Nov 2004 15:10:57 GMT
Author: cziegeler
Date: Fri Nov  5 07:10:57 2004
New Revision: 56674

Modified:
   cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
Log:
The link can have more than one event

Modified: cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
==============================================================================
--- cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
(original)
+++ cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
Fri Nov  5 07:10:57 2004
@@ -304,14 +304,17 @@
                 RequestParameters pars = new RequestParameters(parameters);
                 Enumeration enumeration = pars.getParameterNames();
                 while ( enumeration.hasMoreElements() ) {
-                    String pName = (String)enumeration.nextElement();
-                    String pValue = pars.getParameter(pName);
-                    AttributesImpl hiddenAttrs = new AttributesImpl();
-                    hiddenAttrs.addCDATAAttribute("type", "hidden");
-                    hiddenAttrs.addCDATAAttribute("name", pName);
-                    hiddenAttrs.addCDATAAttribute("value", pValue);
-                    this.startElement("", "input", "input", hiddenAttrs);
-                    this.endElement("", "input", "input");
+                    final String pName = (String)enumeration.nextElement();
+                    final String[] pValues = pars.getParameterValues(pName);
+                    for(int k=0; k<pValues.length; k++) {
+                        final String pValue = pValues[k];
+                        AttributesImpl hiddenAttrs = new AttributesImpl();
+                        hiddenAttrs.addCDATAAttribute("type", "hidden");
+                        hiddenAttrs.addCDATAAttribute("name", pName);
+                        hiddenAttrs.addCDATAAttribute("value", pValue);
+                        this.startElement("", "input", "input", hiddenAttrs);
+                        this.endElement("", "input", "input");
+                    }
                 }
 
             }

Mime
View raw message