Add javascript every request

Nathan Quirynen <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Organization Pension Architects
Message-ID <[email protected]>
Hi,

I want to add a session timeout warning popup to a Tapestry5.4 
application. I thought of creating a javascript module that counts down 
the remaining time left before the session times out and then shows a 
popup warning with the option to logout or keep on going and if no 
action is taken automatically logs out the user. But I'm not sure 
where/when I can/should add this javascript module to the response. I 
think I need to start or reset this count down every request (normal and 
xhr) as this "resets" the sessions timeout and maybe exclude some pages 
that have a specific annotation (NoSessionRequired). I thought of 
implementing a component request filter to solve this, but there's no 
JavaScriptSupport available there. How can I do this?

Nathan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.