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

Philippe Laflamme updated WICKET-1828:
--------------------------------------

    Attachment: wicket-1828.zip

Simply invoke "mvn test" to reproduce.

> WicketTester.clickLink() does not submit values set in forms using 
> FormTester.setValue()
> ----------------------------------------------------------------------------------------
>
>                 Key: WICKET-1828
>                 URL: https://issues.apache.org/jira/browse/WICKET-1828
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.4
>            Reporter: Philippe Laflamme
>         Attachments: wicket-1828.zip
>
>
> Using an AjaxSubmitLink to submit a Form through the clickLink method from 
> WicketTester overrides the values set in the request by calls to 
> FormTester.setValue().
> The problem seems to come from the fact that FormTester puts the form values 
> in the current ServletRequest and not the "nextRequestParameterMap". When 
> clickLink is invoked, the current ServletRequest is overriden by a new one 
> (of type Ajax) and the sets its parameters using the  
> "nextRequestParameterMap".
> See BaseWicketTester line 721 and FormTester line 732.
> I'll submit a Wicket Archtype project that reproduces the problem in a 
> TestCase.

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