Re: Wizard and redirect to a Page + backbutton

2009-01-06 Thread jorgesantoro

I have the same problem, did you find a solution for it?
Thanks


Pills wrote:
 
 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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 

-- 
View this message in context: 
http://www.nabble.com/Wizard-and-redirect-to-a-Page-%2B-backbutton-tp19310387p21317164.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard and redirect to a Page + backbutton

2009-01-06 Thread Sébastien Piller

Hi,

Unfortunately, not really. Now I don't rely on the wizard's events 
anymore and use a regular link instead, this works better


If you find a way to make a clean redirection from inside 
onActiveStepChanged, I'll highly appreciate it ;)





jorgesantoro wrote:

I have the same problem, did you find a solution for it?
Thanks


Pills wrote:
  

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wizard and redirect to a Page + backbutton

2008-09-04 Thread Piller Sébastien

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]