On Sat, Jun 30, 2012 at 7:06 PM, bhorvat <horvat.z.bo...@gmail.com> wrote:
> Well that was my starting point where I encountered the problem in the first
> place. Once the outer zone refreshes it changes the zone id and the link
> does not work any more. The zone id is change but the link that was pointing
> to that zone is not changed
>
> But now I get where I was wrong I didnt put normal id only t:id
>
> <t:zone t:id="innerZone" id="innerZone" />
>
> Can you please explain why is the normal id important in this case? I was
> under the impression that t:id would be converted to id at the end.
>

t:id is the server side id (unique for the template). The client id in
the generated html doesn't have to be the same. If you have one
instance of the component then most frequently it's the same, but if
the component is lets say in a loop than of you have t:id="mydiv"
you'll can get client id's like "mydiv" "mydiv_0", "mydiv_1" etc. Now
the zone component has and "id" parameter that let's you specify what
it's client id is gonna be (see the docs [1]). This is because the
zone's client id is an
important parameter. This is what was happening in your case. You
might as well bind the zone's id with a Property in the java class
etc. It doesn't have to be the same as the t:id.

[1] 
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Zone.html

> Cheers and thanks for patience
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Zone-within-a-Zone-problem-tp5714194p5714215.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
>

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

Reply via email to