You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Phillip Rhodes <sp...@rhoderunner.com> on 2006/09/23 03:21:49 UTC

Override session expiration page

I would like to change the default Session Expiration page that tapestry 
uses.  Any pointers?

I can't find this in the docs.

Thanks.





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


Re: Override session expiration page

Posted by andyhot <an...@di.uoa.gr>.
Karthik N wrote:
> andy, while i have your attention :-), i had a question:
>
> handleStaleSessionException on the engine class - when does it get
> called in
> a request-response cycle?
>
> will it get called only during a stateful form, or will it get called
> even
> before any tapestry page gets validated.
I *think* only in stateful forms and stateful links, i.e. by the direct
service.
In both
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Form.html
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/DirectLink.html
stateful parameter is true by default..

I believe that the page service doesn't handle this (and IMHO it
shouldn't) .

>
> the issue i have is that we have some logic in the page validate which
> relies on stuff in the HTTP session, and i want to catch the expiration
> before the page validate gets called
> any pointers?
>
> On 9/23/06, andyhot <an...@di.uoa.gr> wrote:
>>
>> Karthik N wrote:
>> > follow the thread: Expired Session Message - nabble seems to have
>> > mixed 2 or
>> > 3 threads in 1.
>>
>> nope, it's not nabble's fault. In order to send new mails to this list,
>> some people
>> are used to just clicking on reply on some other mail and changing its
>> subject.
>>
>> >
>> > the gist, as i've gathered so far - you can create and register
>> your own
>> > StaleSession page
>>
>> yep, just create a page named StaleSession
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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


Re: Override session expiration page

Posted by Karthik N <ka...@gmail.com>.
andy, while i have your attention :-), i had a question:

handleStaleSessionException on the engine class - when does it get called in
a request-response cycle?

will it get called only during a stateful form, or will it get called even
before any tapestry page gets validated.

the issue i have is that we have some logic in the page validate which
relies on stuff in the HTTP session, and i want to catch the expiration
before the page validate gets called

any pointers?

On 9/23/06, andyhot <an...@di.uoa.gr> wrote:
>
> Karthik N wrote:
> > follow the thread: Expired Session Message - nabble seems to have
> > mixed 2 or
> > 3 threads in 1.
>
> nope, it's not nabble's fault. In order to send new mails to this list,
> some people
> are used to just clicking on reply on some other mail and changing its
> subject.
>
> >
> > the gist, as i've gathered so far - you can create and register your own
> > StaleSession page
>
> yep, just create a page named StaleSession
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Thanks, Karthik

Re: Override session expiration page

Posted by andyhot <an...@di.uoa.gr>.
Karthik N wrote:
> follow the thread: Expired Session Message - nabble seems to have
> mixed 2 or
> 3 threads in 1.

nope, it's not nabble's fault. In order to send new mails to this list,
some people
are used to just clicking on reply on some other mail and changing its
subject.

>
> the gist, as i've gathered so far - you can create and register your own
> StaleSession page

yep, just create a page named StaleSession


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


Re: Override session expiration page

Posted by Karthik N <ka...@gmail.com>.
i've been reading up on this

http://www.nabble.com/Asynchronous-form-submission-tf2253801.html#a6270976

follow the thread: Expired Session Message - nabble seems to have mixed 2 or
3 threads in 1.

the gist, as i've gathered so far - you can create and register your own
StaleSession page

good luck.

On 9/23/06, Phillip Rhodes <sp...@rhoderunner.com> wrote:
>
> I would like to change the default Session Expiration page that tapestry
> uses.  Any pointers?
>
> I can't find this in the docs.
>
> Thanks.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Thanks, Karthik