The setRedirect(true) call tells Wicket to use the Servlet API to issue a redirect to go to the response page as opposed to just streaming it back as the response to the current request.
On Wed, Sep 17, 2008 at 7:45 PM, m_salman <[EMAIL PROTECTED]> wrote: > > I am not sure what the getrequestcycle().setredirect(true); is for. > Can you please explain that a little bit. Why can't I just set the response > page. > > Is that something special for logouts? > > > Do I need to use 'setRedirect(true)' for th following also? > > catch (ApplicationException ae) > { > setResponsePage(new ErrorPage(ae)); > } > > > Thanks. Appreciate your help. > > > igor.vaynberg wrote: >> >> almost but not quiet >> >> onclick() { getsession().invalidate(); >> getrequestcycle().setredirect(true); setresponsepage(somepage.class); >> } >> >> -igor >> >> > > -- > View this message in context: > http://www.nabble.com/how-to-logout-and-redirect-tp14878923p19543431.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]