Great, both of them worked.

Only this:

getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));



On 4/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> onclick() {
>    final string url=urlfor(HomePage.class);
>    getsession().invalidate();
>    getrequestcycle().pushTarget(new
> RedirectRequestTarget(url));
> }

Or just

onClick() {
  Session.get().invalidate(); // invalidated after the request is handled
  setResponsePage(Home.class);
}

This works for sure when your home page is stateless (and bookmarkable
of course). And I think it should work in other cases as well. If not,
you can try Session.get().invalidateNow();

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to