Hmm, I thought from your previous post that this method was in your
custom Engine class.  The handleStaleSessionException() method in the
Engine is what gets called when the exception occurs.  If this method is
in a page or component it won't be called.

Still, if you named your exception-reporting page "StaleSession", it
should've been invoked by the built-in error reporter even if this new
method wasn't being called.

What do you mean by "doesn't work"?



[EMAIL PROTECTED] wrote:
> Okay, I've taken both suggestions. I've renamed my page to "StaleSession", 
> and altered my code slightly. It still doesn't seem to work.
>
>   protected void handleStaleSessionException(IRequestCycle cycle, 
> StaleSessionException exception) throws IOException
>   {
>     cycle.activate("StaleSession");
>     renderResponse(cycle);
>   }
>
>
> This is in my Border.java file.
>
>
> However, all of my pages subclass an abstract class I've made for BasePage. 
> This overrides the validate() method of the page to check if the user has 
> permissions for that particular page. Could that be messing something up? 
> Should I put something in the validate() method? Is there some sort of 
> getExpired() function?
>
> Thanks,
> Greg
>
> ---------------------------------------------------------------------
> 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]

Reply via email to