Hi, On Sat, Jan 21, 2012 at 8:37 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote:
> 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. Yes you're right, the id needs to be static. No need for a binding expression. Cheers, Dragan Sahpaski > > > -- > 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 >