Looks like arrays are handled properly, but need to be accessed more
carefully. getParameterValues
<http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-oldcore/6.3/xwiki-platform-oldcore-6.3-javadoc.jar/!/com/xpn/xwiki/web/XWikiServletRequest.html#getParameterValues(java.lang.String)>
can return an array of strings, as demonstrated here:
{{groovy}}
println "= Parameter Names ="
request.getParameterNames().each{ println "* Item: $it" }
println "= Parameter Values ="
request.getParameterValues('MyArray[]') .each{ println "* Item: $it" }
{{/groovy}}
{{html}}
<form action="" method="post">
<input name="MyArray[]" value=6 />
<input name="MyArray[]" value=7 />
<input name="MyArray[]" value=8 />
<input name="MyArray[]" value=9 />
<input type="Submit" />
</form>
{{/html}}
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Handling-arrays-in-forms-tp7593719p759372…
Sent from the XWiki- Users mailing list archive at
Nabble.com.