syg6 wrote:
> 
> ...
> setResponsePage(SecondPage.class) in FirstPage's constructor is called the
> url remains:
> 
> http://localhost:8080/myapp/first
> 
> when I am actually now on SecondPage? But when I call
> setResponsePage(ThirdPage.class) from SecondPageForm's onSubmit()
> (SecondPage contains SecondPageForm), the url is:
> 
> http://localhost:8080/myapp/third
> 
> I've tried sticking setRedirect(true) in a few places but that seems to
> mess up my custom session; my custom session is constantly reset, previous
> info stored in the session is wiped out.
> 
> I've also tried using setResponsePage(new SecondPage()) but it doesn't
> seem to change the url and SecondPage.html breaks, it's telling me none of
> my form components are present!
> 

throw a RestartResponseException or a
RestartResponseAtInterceptPageException (I always forget which is the right
one) instead of setResponsePage

Cheers
Hans

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setResponsePage-weirdness-tp3248650p3253687.html
Sent from the Users forum 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

Reply via email to