On Mon, 23 Aug 2010 07:32:09 -0300, badluck13 <blueb...@gmail.com> wrote:

Hello dear list,

Hi!

I have little issue here, I have a collection that I fill with values using action links, its empty in begging and I'm adding objects afterwards...

@Persist
private List l = new ArrayList();

Never initialize a field with a mutable value, because all users of your application will use the same instance of ArrayList. Use onActivate() or @BeginRender for that.

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