myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott O'Bryan" <darkar...@gmail.com>
Subject Re: [Trinidad] Session is about to expire dialog
Date Mon, 24 Mar 2008 13:37:20 GMT
Will the "poll" component in Trinidad do what your asking?

On Fri, Mar 21, 2008 at 10:21 PM, Richard Yee <richard.k.yee@gmail.com>
wrote:

> Hi,
> I am currently using a servlet filter to handle session timeouts to
> redirect the request to a session expired page. This is working okay except
> for if the user clicks on the chooseDate calendar icon after the session
> times out. With ENABLE_LIGHTWEIGHT_DIALOGS="false" (due to the month name
> problem in IE6 (Trinidad-941)), the session expired page appears in the
> calendar window instead of the main window. Once approach to handling this
> case as well as providing the user a warning before the session is going to
> timeout is to display a dialog to the user prior to the session timeout that
> says something like, "Your session is about to timeout" with a Continue
> button. After a minute or two, the dialog would automatically be cleared and
> an AJAX call would be made to the server to force the session expiration. To
> do this, I would have to have a JavaScript timer that would be started when
> the page is loaded, reset whenever a PPR call is made, and cleared whenever
> the page is unloaded. Has anyone implemented this with Trinidad? Is there a
> way to get notified via a callback or hook method when a PPR request is made
> by the Trinidad JavaScript API? Correctime if I'm wrong, but I don't think I
> can use the Trinidad dialog framework for this because it must be
> implemented for every page in the application.
>
> Thanks,
>
> Richard
>

Mime
View raw message