[ 
https://issues.apache.org/jira/browse/WICKET-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno Borges updated WICKET-1794:
---------------------------------

    Attachment: patch-WICKET-1794.diff

Patch attached.

The fix is to check for a String array inside appendParameters as wouldn't be a 
good idea  to change WicketTester.

Bruno

> WicketTester.clickLink and IndexedParamUrlCodingStrategy don't work together
> ----------------------------------------------------------------------------
>
>                 Key: WICKET-1794
>                 URL: https://issues.apache.org/jira/browse/WICKET-1794
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4-M3
>            Reporter: dennis lucero
>             Fix For: 1.4-RC2
>
>         Attachments: patch-WICKET-1794.diff
>
>
> IndexedParamUrlCodingStrategy.appendParameters expects String->String map:
> ....
>               while (parameters.containsKey(String.valueOf(i)))
>               {
>                       String value = 
> (String)parameters.get(String.valueOf(i));
> ...
> but BaseWicketTester.clickLink converts page params to String->String[] map:
> ....
>                                       PageParameters parameters = 
> (PageParameters)getParametersMethod.invoke(
>                                               bookmarkablePageLink, 
> (Object[])null);
>                                       
> setParametersForNextRequest(parameters.toRequestParameters());
> ...
> And as result we have type cast exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to