use setResponsePage() to go to the next page when everything is a-ok.
Wicket will instruct the browser to redirect to the new page (iirc).
Martijn
On Wed, Apr 21, 2010 at 11:58 PM, Brian Laframboise
wrote:
> Thanks Edward. I was hoping for some means of doing this in a
> redirect-after-post kind
Thanks Edward. I was hoping for some means of doing this in a
redirect-after-post kind of way so that the javascript response to the
client actually caused the browser to request the next wizard page via a new
url, creating a back-button history entry. I guess generating that URL for a
non-bookmark
Since you are changing the DOM dynamically using Ajax, the browser --
correctly I would say -- isn't considering this a page change, so the
back button should take you back to the page prior to the wizard.
The browser history will be immutable from JavaScript, so that's not an option.
To achieve
I have a Page with a Wizard component. Currently using the next and previous
buttons perform full-page (non-ajax) form submissions which has the
necessary side-effect of being back-button friendly.
I implemented an ajax version of the Wizard in order to get faster
validations. That part works grea