You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tapestryphoto <ph...@digiatlas.org> on 2008/12/03 12:42:53 UTC

T5: how to detect session timeout?

Hi,

I am trying to deal with session timeouts in T5.

Rather than extend a base class I was hoping I might be able to use an  
Annotation. However, I find that when the user activates a link or  
presses a button on a timed-out session that the dispatcher is not  
being called early enough to detect anything and I end up with a null  
pointer exception.

I have the following in my AppModule:

		configuration.add("TimeoutDetector", timeoutDetector,
		"before:PageRender");

Two questions:

a) is it possible to detect Session timeouts in this way?

b) As PageRender isn't early enough can I hook this in earlier? I'd  
also appreciate knowing what values can be placed in that parameter.  
Nowhere can I find this documented (apart from a reference to  
"before:" and "after:"). I've even looked in the T5 code but I'm  
afraid there is just too much of it to look through. Surely the  
specification of part of a page lifecycle would be better as something  
other than a String?!

thanks,
p.



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