[ 
https://issues.apache.org/jira/browse/WICKET-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126294#comment-13126294
 ] 

Nick Pratt commented on WICKET-2551:
------------------------------------

Im hitting this exact same issue with Wicket 1.4.18, but not using the encoding 
strategy detailed in WICKET-2339.  The PageParams are cached, but do not have a 
componentPath set, so WIcket redirects the call back to the Application 
HomePage, not the Page containing the Form, so the form never gets submitted.
                
> Bug in WicketTester when submitting forms
> -----------------------------------------
>
>                 Key: WICKET-2551
>                 URL: https://issues.apache.org/jira/browse/WICKET-2551
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.1, 1.4.2, 1.4.3
>            Reporter: Martín Bigio
>            Assignee: Igor Vaynberg
>             Fix For: 1.4.4
>
>         Attachments: QuickStart.zip
>
>
> When submitting a form in a test using WicketTester for an Application that 
> has a RequestCycleProcessor that uses the CryptedUrlWebRequestCodingStrategy, 
> Wicket redirects to the HomePage. It seems that WicketTester can't figure out 
> wich component actually submits the form  because PageParameter "path" is 
> undefined, so it decides to redirect to the HomePage. This can be checked in 
> WebRequestCycleProcessor#resolve(RequestCycle, RequestParameters).
> The attached QuickStart reproduces the bug. After fixing it, the 
> TestOtherPage test should pass.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to