On Sat, 21 Jan 2012 16:56:59 -0200, Dragan Sahpaski
<dragan.sahpa...@gmail.com> wrote:
Hi,
Hi, Dragan!
This is expected behavior.
Once you update the outer zone the inner zone id is generated again if
you don't specify it explicitly.
Exactly!
Solution 2:
- Generate the zone's client id yourself, with a binding expression.
<t:zone t:id="zoneMediaPreview" id="${zoneMediaPreviewId}"
t:update="show">
. . .
</t:zone>
<t:eventlink t:event="changePreview" context="assetMedia.id"
zone="${zoneMediaPreviewId}" class="hideLink">
public String getZoneMediaPreviewId(){
return "zone-media-perview";
}
Why a binding expression instead of just adding id="zone-media-previews"?
If the id needs to be static, as it seems to be the case here, I can't see
why using a binding expression.
--
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