Hi,
This is expected behavior.
Once you update the outer zone the inner zone id is generated again if you
don't specify it explicitly.

Solution 1:
 -  Take the zone's generated clientId

 <t:eventlink t:event="changePreview" context="assetMedia.id"
zone="${zoneMediaPreviewId}" class="hideLink">

@InjectComponent
private Zone zoneMediaPreview;
// the zoneMediaPreview component is located before the  eventLink so it's
Id is already generated.
public String getZoneMediaPreviewId(){
        return zoneMediaPreview.getClientId();
}

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";
}

Hope it helps.
Cheers,
Dragan Sahpaski

On Fri, Jan 20, 2012 at 11:43 PM, bhorvat <horvat.z.bo...@gmail.com> wrote:

>
> Hope this is bit better. Thanks
>
> --------------------------------
> <t:zone t:id="zoneAsset" t:update="show">
>
>   <t:zone t:id="zoneMediaPreview" t:update="show">
>     <t:delegate to="mediaLayout" />
>
>     <t:block t:id="blockMediaImage">
>          ${context:images/}${selectedAssetImage.imagePath}
>     </t:block>
>   </t:zone>
>
>
>  <t:eventlink t:event="changePreview" context="assetMedia.id"
> zone="zoneMediaPreview" class="hideLink">
>            <div class="csgImg">
>              <div class="csgiTittle">${assetImage.caption}</div>
>              <div class="csgiType">
>                    ${context:images/models/thumbnailTypeImage.png}
>             </div>
>              ${context:images/}${assetImage.imageThumbnailPath}
>        </div>
>   </t:eventlink>
>
> </t:zone>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Zone-and-Eventlink-refresh-problem-tp5161722p5161885.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to