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

Frank Bille Jensen updated WICKET-1794:
---------------------------------------

    Fix Version/s:     (was: 1.4-RC1)
                   1.4-RC2

> 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
>
>
> 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