Looks like your security strategy is not allowing your pageexpired page to be instantiated. in that case it will try to render the login page. Note that this is default behavior both in wicket-auth-roles and swarm. Check the documentation for how to set your security strategy to allow wicket to create an instance of the page.
Maurice On Mon, Jun 2, 2008 at 10:22 AM, jd17 <[EMAIL PROTECTED]> wrote: > > Hi, > > in my Wicket application (using Wicket 1.3.3) I have a Login page. In case > of a session timeout, the user is supposed to be sent back to something > looking like the login page with an additional text "Your session has timed > out". > > So I thought the best way to deal with this would be to create a PageExpired > class derived from the Login class and use markup inheritance to add the > "Your session has timed out" text, so there is no duplication and there are > just a few lines to add. In the init() method of my WebApplication subclass > I say > > getApplicationSettings().setPageExpiredErrorPage(PageExpired.class); > > But, unfortunately, on session expiry in most cases the Login Page is loaded > instead of the PageExpired page. I could not find out conditions under which > the Login page is being loaded instead of the PageExpired page. I tried to > debug the Wicket code itself but got lost somewhere and did not find the > point where the original target (before the timeout) gets replaced by the > Login page. Also, I noticed that in no case the getPageExpiredErrorPage() > Method of the Settings class was called. > > Do you have any ideas or maybe an alternative approach? > > José > -- > View this message in context: > http://www.nabble.com/setPageExpiredErrorPage%28PageExpired.class%29--%3E-Login-page-loaded-instead-of-PageExpired-page-tp17596262p17596262.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]
