On Fri, 04 May 2012 12:31:26 -0300, Norman Franke <nor...@myasd.com> wrote:

Good question. I never came up with a good solution, either, without having two events. One can do onActivate(), but if you are doing something slow, like reading values from a database, I wouldn't recommend it. This is because onActivate is called to construct the URL in any referencing page.

I'm sorry for not having the time to check this with code now, but I don't think this is correct. As far as I know, onActivate() is only invoked when the page is requested. onPassivate() is invoked every time you generate an event link inside the page.

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