You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alec Swan <al...@gmail.com> on 2011/06/11 21:51:04 UTC

How to close modal panel on session timeout redirect

Hello,

I have a custom WebRequestCycle which redirects the user to the home
page when user session times out as follows:

@Override
public Page onRuntimeException(Page page, RuntimeException e) {
    ....
    return new RedirectPage(homePageUrl);
}

The only problem is that when the redirect occurs in the modal panel
then the content of the modal panel is redirected to the home page
instead of the base page. How can I force the modal panel to close and
redirect the base page on session timeout?

Thanks,

Alec

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org