[ https://issues.apache.org/jira/browse/WICKET-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brad Fritz updated WICKET-2172: ------------------------------- Attachment: PageParameters_String_array.patch Patch with unit test and change to fix issue. Other unit tests continue to pass but I'm not familiar enough with the intended behavior to know if there might be unintended consequences not exposed by test coverage. > PageParameters construced with keyValuePairs does not handle array values > ------------------------------------------------------------------------- > > Key: WICKET-2172 > URL: https://issues.apache.org/jira/browse/WICKET-2172 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.4-RC2 > Reporter: Brad Fritz > Priority: Minor > Attachments: PageParameters_String_array.patch > > > The PageParameters constructor that takes a "keyValuePairs" argument does > not convert repeated keys into an array of values. For example: > {code} > // specify three comma delimited values for the "a" parameters > PageParameters parameters = new PageParameters("a=1,a=2,a=3"); > String[] a = parameters.getStringArray("a"); > assertEquals(3, a.length); // fails because a.length == 1 > {code} > Issue first described on the user's list: > http://www.nabble.com/PageParameters-with-String-array-question-to22540294.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.