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.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to