On Tue, 24 Jan 2012 17:34:30 -0200, hese <1024h...@gmail.com> wrote:
Hi,
Hi!
<t:loop t:source="contacts" t:value="contact">
<t:zone t:id="zone_${contact.id}" t:update="highlight">
As you guessed, t:id="zone_${contact.id}" doesn't work because tapestry
throws an error, id has to start with a alphabet blah...
You're not correct about the error reason: t:id (Tapestry component id) is
static, no matter how many times it's rendered in a single request (static
structure, dynamic behavior), so you can't use expressions in this
attribute. On the other hand, the client-side id (id attribute) is
dynamic, so you can use expressions. The zone parameter in many components
refers to the client-side id, not the component id, so try this:
<t:zone id="zone_${contact.id}" t:id="zone" t:update="highlight">
--
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