Patches item #1493672, was opened at 2006-05-23 17:53 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1493672&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jean-Baptiste Quenot (quenotj) Assigned to: Nobody/Anonymous (nobody) Summary: Handle String array in PageParameters Initial Comment: Hello, Thanks for providing Wicket! When building PageParameters, it is possible to repeat the same parameter name to build a string array, this is documented here: http://wicket.sourceforge.net/apidocs/wicket/util/value/ValueMap.html#add(java.lang.String,%20java.lang.String) However when issuing setResponsePage(MyPage.class, params) the newly constructed URL does not honour the string array parameter, only the first value is used. Example: PageParameters params = new PageParameters(); params.add("a", "1"); params.add("a", "2"); This builds a parameter that is a String[] with name "a" and values: ["1", "2"]. But the URL shown in the browser is: http://server/app?a=1 instead of http://server/app?a=1&a=2 Note that in the target page I'm using params.getStringArray("a") to get the string array. Please find attached a patch against wicket-1.2-rc1 that adresses the URL encoding issue. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1493672&group_id=119783 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop