Em Tue, 24 Nov 2009 09:07:53 -0200, Ilya Obshadko <ilya.obsha...@gmail.com> escreveu:

Is there a way to determine current page context from within a component?

AFAIK no.

Use case: suppose you have a component that appears on every page and
contains login form.
It is obviously desirable to return to the same page with the same context after user submits logon information.

The component should check the session or some service for this information, not get it from the page activation context. Your login component could use the Request service to get the requested URL, store it somewhere and then use it to the desired redirect.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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