Hi all

Thank you for your answers.
I don't mean any client id related stuff. I mean the id of the component.

> The explanation is not correct. You have a single TimeSlot component instance 
> in your template which is rendered n times. Instead of relying in @Persist 
> inside the component, pass the info as a parameter.


Yes that's exactly what I face. What I would need is more than one instance of 
the component and each instance with his own session value, independent from 
the other instances.

But I guess this isn't possible.


On 03.12.2010, at 13:11, Thiago H. de Paula Figueiredo wrote:

> On Fri, 03 Dec 2010 09:54:54 -0200, Christian Koller 
> <christian.kol...@net-m.ch> wrote:
> 
>> Any ideas how to solve this?
> 
> Tapestry components ids are static, period. HTML ids are dynamic.
> 
>> If I use a literal as the id, then it works, but then all the generated 
>> timeSlot components within the loop will have the same id.
>> If I use afterwards the persist annotation within the timeSlot component all 
>> the generated timeSlots share this session value because the id is the same.
> 
> The explanation is not correct. You have a single TimeSlot component instance 
> in your template which is rendered n times. Instead of relying in @Persist 
> inside the component, pass the info as a parameter.
> 
> -- 
> 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
> 
> 

Christian Koller
Sofwareentwickler
 
net mobile Schweiz AG
Seestrasse 45
CH ñ 8702 Zollikon
 
Tel:     + 41 (0) 44 918 99 99
Fax:     + 41 (0) 44 918 99 98
Direkt:  + 41 (0) 44 918 99 72

Mail: christian.kol...@net-m.ch
Web:  www.net-m.ch


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

Reply via email to