How would you know which page was requested when the session has
expired? The whole reason for the PageExpiredException is that wicket
doesn't know which page was requested. Use bookmarkablepagelinks for
links you don't want to expire.

Martijn

2010/2/14 Major Péter <majorpe...@sch.bme.hu>:
> My guess would be to override RequestCycle#onRuntimeException and do
> your logic there if the exception is PageExpiredException.
>
> Regards,
> Peter
>
> 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta:
>> In my WebApplication class I use setPageExpiredErrorPage(). So far, so good.
>> But this happens also for the main/home page that everybody can access. I
>> would like to redirect only the pages where a user has to login, not for the
>> home page. If the homepage expires, a simple redirect to a new session with
>> that page should be made.
>>
>> Is this possible with wicket?
>>
>> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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

Reply via email to