Hi Thiago, That's tremendous, thanks for the help.
R. -----Original Message----- From: Thiago H. de Paula Figueiredo <thiag...@gmail.com> Reply-to: "Tapestry users" <users@tapestry.apache.org> To: Tapestry users <users@tapestry.apache.org> Subject: Re: T5.1 - authenticating page access & contributing a sevice Date: Tue, 05 Oct 2010 12:28:41 -0300 On Tue, 05 Oct 2010 12:01:57 -0300, Richard Hill <r...@su3analytics.com> wrote: > Hi All, Hi! > Now my question is two-fold: > > 1) How do I define and contribute a service in tapestry? Using Tapestry IoC: http://tapestry.apache.org/tapestry5.1/tapestry-ioc/service.html. > 2) How does this guy know that the user _is_ authenticated? Should my > service cache logged-in users itself, or can it access the session? Both options sound the same to me. In your RequestFilter (or any other class that isn't a page, component or mixin), use the ApplicationStateManager service to get or set the value of a given class persisted using @SessionState. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org