Hi, #continueToOriginalDestination() wont do anything if there is no saved destination. In this case it will return false and your code will be excuted (setResponsePage()).
On Mon, Jul 16, 2012 at 12:43 PM, Stefan Droog <[email protected]> wrote: > Hi all, > > The continueToOriginalDestination() method in our Login page throws a > ReplaceHandlerException (Wicket 1.5.7). This means that it won't invoke the > setResponsePage, which I do expect. > > Our implementation looks like: > > Form<Void> form = new StatelessForm<Void>("form"){ > > @Override > protected void onSubmit() { > > if (session.signIn(username, password)) { > if (!continueToOriginalDestination()) { > setResponsePage(getApplication().getHomePage()); > } > } > > } > }; > > RequestHandlerStack#replaceAll throws this exception because there is still > one requestHandler (ListenerInterfaceRequestHandler -> Listener interface: > IFormSubmitListener). > > How should we handle this exception? > > Thanks in advance! > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
