You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Matthias Wessendorf <ma...@apache.org> on 2008/02/08 16:07:08 UTC
[Trinidad] Timeout handling ?
Hi,
I filed TRINIDAD-943 ([1]) to support session timeout handling (at
least optional).
Why not introducing a new ctx param:
<context-param>
<param-name>org.apache.myfaces.trinidad.TIMEOUT_URL</param-name>
<param-value>my_page_url</param-value>
</context-param>
and incase of PPR AND!!! TIMEOUT_URL is set, send down something like this:
<?Tr-XHR-Response-Type ?>
<redirect>
TIMEOUT_URL
</redirect>
(TrPage._handlePprResponse() already handles <redirect>url</redirect>)
when no TIMEOUT_URL is set, I see two options:
-redirect to "/"
-<script>alert("timeout");</script> (yes, timeout is NOT hard-coded....)
For the non PPR
externalContext.redirect(TIMEOUT_URL);
(or "/")
Please note, (being a portlet ignorant :-)) I don't know if/how this
works in a portlet.
-Matthias
[1] https://issues.apache.org/jira/browse/TRINIDAD-943
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org