Em Thu, 17 Sep 2009 16:07:47 -0300, Alfonso Quiroga <alfonsose...@gmail.com> escreveu:

Hi, if I have a Box component, and I have 10 boxes in the same page...
and all of them must share data...

Hi!

1) I must keep the data in the Session?

That's one option. Another one is to have this data store inside a Tapestry-IoC service.

2) Which method should I use to initialize that data? If I use
onActivate() in the Box Component, I think it will be called 10 times
(because I have 10 boxes in the same page)

onActivate doesn't work in components. You can use setupRender() inside a component.

--
Thiago H. de Paula Figueiredo
Consultor, desenvolvedor e instrutor em Java
Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to