tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent Tong <k...@cpttm.org.mo>
Subject Re: overriding handleStaleSessionException
Date Thu, 01 Sep 2005 10:36:30 GMT
Andrei Stroescu <andrei <at> ime.ro> writes:

> 
> I tried to override handleStaleSessionException in my Own Class that 
> excends BasePage but dindn't work.

You need to extend BaseEngine, not BasePage.

> this is overriding method:
> 
> private void handleStaleSessionException(StaleSessionException ex, 
> IRequestCycle cycle, ResponseOutputStream output) throws IOException, 
> ServletException
>     {
> 
>     System.out.println("StaleSessionException!");
>    SearchM search= (SearchM) cycle.getPage("SearchM");
>     cycle.activate(search);
> 
>     }

Try:
private void handleStaleSessionException(StaleSessionException ex, 
 IRequestCycle cycle, ResponseOutputStream output) throws IOException, 
 ServletException
     {
     System.out.println("StaleSessionException!");
     SearchM search= (SearchM) cycle.getPage("SearchM");
     cycle.activate(search);
     renderResponse(cycle, output);
  }

--
Author of e-book for learning Tapestry (www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message