if he actually needs *redirection* then throw new ImmediateRedirectException(RedirectToPage.class,params);
public class ImmediateRedirectException extends AbstractRestartResponseException{ public ImmediateRedirectException(Class<? extends Page> pageClass,PageParameters params) { RequestCycle requestCycle=RequestCycle.get(); requestCycle.setRedirect(true); requestCycle.setResponsePage(pageClass, params); } } On Fri, Mar 11, 2011 at 12:43 PM, Maarten Billemont <lhun...@gmail.com> wrote: > On 10 Mar 2011, at 13:25, vineetsemwal wrote: >> >> use restartresponseexception > > While drf may not have meant what he said, RestartResponseException will not > actually redirect to another page, it will just load the other page as a > response to the current page's URL. That is often very confusing for users, > especially when the current page is mounted. > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- thank you, regards, Vineet Semwal --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org