we handle it like that:
[in your application-class]

@Override
        protected IRequestCycleProcessor newRequestCycleProcessor() {
                return new WebRequestCycleProcessor() {

                        @Override
                        protected Page onRuntimeException(final Page page, 
final RuntimeException
e) {
if (e instanceof PageExpiredException) {
                                        return new 
PageExpiredPage(((MyPage)page).getPortalId());
                                }
                                return new InternalServerError(page, e);
                                
                        }

                };
        }

Markus Haspl wrote:
> 
> On Mon, Sep 22, 2008 at 3:48 PM, Uwe Schäfer
> <[EMAIL PROTECTED]>wrote:
> 
>> Markus Haspl schrieb:
>>
>>  getApplicationSettings().setPageExpiredErrorPage(Page.class); In the
>>> Page.class i can't work with the PageParameters, so i can't make it
>>> dynamic.
>>>
>>
>> what kind of data would you like to pass to it, and - more important -
>> where could you possibly get it from ?
>>
> 
> 
> i have a PageParameter (portalId) which indicates on which Portal the User
> is on. In the database there are a lot of portals, every portal has it's
> own
> users, pages and so on. So, every portal should have its own
> PageExpiredErrorPage.
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Dynamic-PageExpiredPage-tp19608106p19611998.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]

Reply via email to