Re: Handling session expiry

2010-01-19 Thread Klaus Kopruch
Ah, thanks! Massimo Lusetti wrote: > >> >> Thanks a lot! >> >> How can I access a T5 service from sessionDestroyed() ? > > As i said from my first reply get the Registry from the > ServletContext, it is stored there under > TapestryFilter.REGISTRY_CONTEXT_NAME > -- View this message in cont

Re: Handling session expiry

2010-01-19 Thread P . Stavrinides
" To: "Tapestry users" Sent: Tuesday, 19 January, 2010 11:21:56 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Handling session expiry On Tue, Jan 19, 2010 at 10:15 AM, Klaus Kopruch wrote: > > Thanks a lot! > > How can I access a T5 service from session

Re: Handling session expiry

2010-01-19 Thread Massimo Lusetti
On Tue, Jan 19, 2010 at 10:15 AM, Klaus Kopruch wrote: > > Thanks a lot! > > How can I access a T5 service from sessionDestroyed() ? As i said from my first reply get the Registry from the ServletContext, it is stored there under TapestryFilter.REGISTRY_CONTEXT_NAME Cheers -- Massimo http://me

Re: Handling session expiry

2010-01-19 Thread Klaus Kopruch
Thanks a lot! How can I access a T5 service from sessionDestroyed() ? P.Stavrinides wrote: > > Exactly, just set it in your web.xml: > > > com.web.application.SessionListener > > > And then in SessionListener: > > /** @see HttpSessionListener#sessionC

Re: Handling session expiry

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 13:08:50 -0200, Klaus Kopruch wrote: In javax.servlet.http.HttpSession or org.apache.tapestry5.services.Session? Tapestry's Session is just a facade around the HttpSession. Thus, setting some attribute in Session makes it be set in the HttpSession too. -- Thiago H.

Re: Handling session expiry

2010-01-15 Thread Klaus Kopruch
Thiago H. de Paula Figueiredo wrote: > > I don't use @SessionState with my HttpSessionBindingListener > implementation. I set it in the Session directly. ;) > In javax.servlet.http.HttpSession or org.apache.tapestry5.services.Session? -- View this message in context: http://old.nabble.com/

Re: Handling session expiry

2010-01-15 Thread Peter Stavrinides
, 2010 16:44:28 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Handling session expiry On Fri, 15 Jan 2010 12:40:24 -0200, Massimo Lusetti wrote: > On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo > wrote: > >> T5 doesn't, but the Servlet API has

Re: Handling session expiry

2010-01-15 Thread Klaus Kopruch
Massimo Lusetti wrote: > > Implement one of the listeners, for ex HttpSessionListener, then > access the registry from the context and do what you need. > Where do you install HttpSessionListener? What registry and what context do you mean? -- View this message in context: http://old.nabble.

Re: Handling session expiry

2010-01-15 Thread Klaus Kopruch
Tx, I'll play with it. -- View this message in context: http://old.nabble.com/Handling-session-expiry-tp27177262p27178359.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-u

Re: Handling session expiry

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 12:40:24 -0200, Massimo Lusetti wrote: On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo wrote: T5 doesn't, but the Servlet API has. Create an HttpSessionBindingListener implementation and add it to the Session. Its valueUnbound() method will be invoked

Re: Handling session expiry

2010-01-15 Thread Massimo Lusetti
On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo wrote: > T5 doesn't, but the Servlet API has. Create an HttpSessionBindingListener > implementation and add it to the Session. Its valueUnbound() method will be > invoked when the session is invalidated. Actually HttpSessionBindingLi

Re: Handling session expiry

2010-01-15 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jan 2010 12:25:16 -0200, Klaus Kopruch wrote: Hello, Hi! can someone pls give me some hints how to handle user session expirations without writing much boilerplate code? I'd like to send a special session expiry page. Has T5 a mechanism for that? T5 doesn't, but the Servlet A

Re: Handling session expiry

2010-01-15 Thread Massimo Lusetti
On Fri, Jan 15, 2010 at 3:25 PM, Klaus Kopruch wrote: > can someone pls give me some hints how to handle user session expirations > without writing much boilerplate code? I'd like to send a special session > expiry page. Has T5 a mechanism for that? Implement one of the listeners, for ex HttpSes