Estou utilizando páginas interceptadores. Comumente, estou redirecionando
para uma tela de login, caso o usuário não esteja logado no sistema. Após se
logar, o sistema deverá retornar para a página anterior. O método foi
implementado conforme documentação descrita do site da Apache Wicket
(https://cwiki.apache.org/WICKET/using-intercept-pages.html)
// This page will be redirect to a page intercepting
public class Checkout extends WebPage {
User loggedInUser = session.getLoggedInUser();
if (loggedInUser == null) {
redirectToInterceptPage(new Login(params));
}
}
public class Login extends WebPage {
// Method should return true and display the Checkout page
if (!this.continueToOriginalDestination()) {
setResponsePage(ShowCatalog.class);
}
}
Results: The method does not return true or false and throws the exception
ReplaceHandlerException, not redirecting after login to the Checkout page. I
don't know how to deal it. How can I solve this problem?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/continueToOriginalDestination-throws-exception-ReplaceHandlerException-in-wicket-1-5-tp4649529.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]