Hi Michael, > Is there a way in T5.1 to have graceful session timeout handling on > form submission or links? I think a superclass can be an elegant solution... my solution though was to use a dispatcher, my use case was not specific to a form or a few links or a few pages, but rather application wide. I store a callback, redirect back to the login page, then restore the state of the page via the callback.
Cheers, Peter ----- Original Message ----- From: "Michael Gentry" <mgen...@masslight.net> To: "Tapestry users" <users@tapestry.apache.org> Sent: Friday, 18 September, 2009 23:37:13 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: T5.1 Graceful Session Timeout? Since I'm sticking this in a superclass to be inherited by many pages, I'll pretend it is slightly more efficient to return the .class (which may not be true at all). It is indeed less code. :-) Thanks Thiago! mrg On Fri, Sep 18, 2009 at 4:32 PM, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > Em Fri, 18 Sep 2009 17:28:03 -0300, Michael Gentry <mgen...@masslight.net> > escreveu: > >> Initially I was thinking I might need to set some values in my >> SessionTimeout page, but now I'm not sure if I'll do that. I'm >> assuming returning SessionTimeout.class will be more efficient than >> injecting the page? > > I don't know about performance, but returning SessionTimeout.class doesn't > need a private field annotated with @InjectPage. A little bit less code. :) > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org