Hi Thiago, That's tremendous, thanks for the help.
R. -----Original Message----- From: Thiago H. de Paula Figueiredo <[email protected]> Reply-to: "Tapestry users" <[email protected]> To: Tapestry users <[email protected]> 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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
