[
https://issues.apache.org/jira/browse/WICKET-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630740#action_12630740
]
Timo Rantalaiho commented on WICKET-1828:
-----------------------------------------
Thanks! Just a question to make sure: did you try
with wicketTester.executeAjaxEvent(submitLink, "onclick");
?
> 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.