You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Add the following to your corresponding WebPage...

...

Link logoutLink = new Link("my-link-wicket-id") {

	public void onClick() {
		// you can use "getSession().invalidateNow();" if you want to remove all wicket components from the session
		getSession().invalidate();
		getRequestCycle().setRedirect(true);
		setResponsePage(WhereEverYouWantToRedirect.class);
	}
};

...
  • No labels