On Wed, 04 May 2011 11:54:16 -0300, bogdan_cm <bogdan.iva...@rbccm.com>
wrote:
Hi again,
Hi!
I have a Index class which declares another object as a private
instance variable:
private User user = new User();
Never never never never do that (initializing a field on its declaration).
Use onActivate() or @BeginRender or one of the prepare events of Form for
that.
Shouldn't Tap clean all variables every time a new request is serviced?
That's exactly what causes what you're seeing: Tapestry, after a request,
sets the field to its initial value instead of executing the field
initialization again.
--
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