Thanks Thiago.

For anyone else who has this problem, here's how I implemented it:

In the component:
@Inject
private RenderSupport renderSupport;

@Property
private String zoneId;

void setupRender() {
        zoneId = renderSupport.allocateClientId("myZone"); //Note: same as
zone t:id, but doesn't need to be
}


In the .tml:
<a t:type="ActionLink" [snip other stuff] t:zone="prop:zoneId">link</a>
<t:zone t:id="myZone" id="prop:zoneId">
[snip other stuff]
</t:zone>

On Fri, Aug 13, 2010 at 9:44 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
>
> On Fri, 13 Aug 2010 22:08:40 -0300, Donny Nadolny <donny.nado...@hotmail.com> 
> wrote:
>
>> I have a component that has a Zone and an ActionLink within the zone (which 
>> updates the zone that contains it). This works fine normally, but when I use 
>> it in a loop (actually a nested loop) and click the ActionLink, it only 
>> updates the first zone.
>
> Short answer: give each Zone an unique id (not t:id) and use this as the 
> value passed to the zone parameter of ActionLink.
>
> --
> 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
>

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

Reply via email to