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. As a result, my start page calls onActivate for
like 30 pages and is very slow on startup.
@SetupRender is another potential place, but I don't think it's called
for AJAX, so I often just call it from my AJAX listener. Seems we really
need an @OnInitGoesHere or something. :)
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org