..makes sense :)

Best wishes,
Wolfgang.

[EMAIL PROTECTED] schrieb: -----

An: "MyFaces Development" <[email protected]>
Von: "Matthias Wessendorf" <[EMAIL PROTECTED]>
Gesendet von: [EMAIL PROTECTED]
Datum: 08.02.2008 04:07PM
Thema: [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


PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschäftsführer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer

**********************************************************************
http://www.pta.de
Mit 1547 Erfahrungsberichten aus 39 Jahren erfolgreicher Projektarbeit!
**********************************************************************

Reply via email to