Wizard and redirect to a Page + backbutton

View: New views
1 Messages — Rating Filter:   Alert me  

Wizard and redirect to a Page + backbutton

by Pills :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I've a little problem with wicket. I'm trying to debug the following use
case:

In a wizard, I sometimes need to redirect the user to a page outside the
wizard (that is: quit the wizard). I use the standard "setResonsePage"
method with my page class, on the "onActivenStepChanged" event.

#onActiveStepChanged
...
if (lastStep instanceof ChooseLoginMode &&
"createaccount".equals(clm.loginmode)) {                  
    ((WizardModel)getWizardModel()).setActiveStep(lastStep); // Doesn't
work...
    *setResponsePage(PageSubscribe.class); *// backbutton gets messed
  or
    *redirectToInterceptPage(new PageSubscribe());* // idem
}

But when the user click to the browser's backbutton, the wizard isn't in
a correct state. It display the step #1 but its model and logic is for
step #2, or even more weird state...

What would be your advice to fix that kind of issue? Any idea are
welcome (this appened at least 4 times the two past days on our
production machine) ;)

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!