Details
Description
calling setResponsePage() within a Form#onSubmit( ) to a mounted Page will:
1. Not redirect to the mounted URI
2. Screw up path rewriting for all elements on the rendered page.
I have attached a quickstart zipfile in which I am able to reproduce the issue. Here's a quick description of what happens:
PageOne.class is mounted to /pageone
PageTwo.class is mounted to /pagetwo
PageOne has a Form with a single setResponsePage( PageTwo.class ); in its onSubmit( );
When PageOne's form is submitted, instead of redirecting to /pagetwo, the page uri is something like /wicket/page?0-1.IFormSubmitListener-form
Any subsequent path references on the rendering of PageTwo are broken, since the browser thinks the relative path origin is /wicket/, whereas wicket likely thinks it's /
Attachments
Attachments
Issue Links
- relates to
-
WICKET-4173 Incorrect URL for setResponsePage() within a Form#onSubmit( )
- Resolved