On Thu, 30 Jun 2011 19:14:51 -0300, Nillehammer <tapestry.nilleham...@winfonet.eu> wrote:

Hi List,

Hi!

I dug into Tapestry's source code and found out that PersistentLocale is set in ComponentEventLinkEncoder's decode methods. From that I judged I would only have access to PersistentLocale from within pages or components. So I implemented an abstract BasePage that checks PersistentLocale.isSet in its onActivate method and sends the redirect, if necessary. All my pages inherit from BasePage,

I'd write a RequestFilter that invokes ComponentEvenLinkEncoder.decodePageRenderRequest() and ComponentEvenLinkEncoder.decodeComponentEventRequest() and after that check the PersistentLocale. :)

--
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