Hmm why not to it org.apache.wicket.extensions.wizard.Wizard#onFinish() .. ?

Matthias Keller wrote:
Hi

I've got a wizard letting the user enter some information.
In the onFinish() method, I redirect him to my ConfirmationPage:
setResponsePage(new ConfirmationPage());
(I chose the instance method instead of the class method as I don't want to have a bookmarkable page there)

On the ConfirmationPage I need access to the session a last time to display a message like:
"Thank you Mr XXX, you'll hear from us soon"

After that I want to invalidate my session so that all the wizard pages are becoming inaccessible (I have to set them to versioned as the customer wants back button support inside the wizard...). Unfortunately, when I call getSession().invalidate(); anywhere in my ConfirmationPage (be it the constructor, onAfterRender() or even onDetach()), I'll never see the ConfirmationPage as I get the Page Expired message instead.... How can I achieve the destruction of the session (and thus the pages) but still display this one last page? Reloading this confirmation page may give the Page Expired message, I dont care.

Thanks

Matt


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to