Hi,
After the update of the first zone - the second zone's Id is changed
(tapestry does this when the zone updates). Check with firebug or
something.

Solution:
1: Inject the zone and take make getClientId() (to take the generated id)
2: From the docs in http://tapestry.apache.org/ajax-and-zones.html
"If the Form or Link is enclosed by the Zone itself, then the zone
parameter may be set to the special value ^. The carat is evaluated,
on the client side, by searching up form the form or link element for
the first enclosing element with the t-zone CSS class. In this way,
the client-side coordination can occur without having to know what the
specific client-side id of the Zone is. Because of this, in many
cases, it is no longer necessary to specify the Zone's id parameter."

Just do  <t:eventlink t:event="showAllReviews" zone="^"


Cheers,
Dragan Sahpaski


On Sat, Jun 30, 2012 at 11:06 AM, bhorvat <horvat.z.bo...@gmail.com> wrote:
> I have a Zone and inside I have a component that has a zone, after the first
> zone is refreshed the link that refreshes the second zone does not work. Is
> there a problem with this combination or am  I missing something?
>
>                <t:zone t:id="zoneComponent" t:update="show">
>                                <t:if t:test="selectedComponent">
>                                    <t:layout.ComponentData
> component="selectedComponent" />
>                                </t:if>
>                </t:zone>
>
> And the Component is
>
>  <t:zone t:id="zoneReviews" t:update="show">
>            <t:eventlink t:event="showAllReviews" zone="zoneReviews"
> class="showThumbsButton right">All</t:eventlink>
>
>   // A lot of html code
>
>  </t:zone>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Zone-within-a-Zone-problem-tp5714194.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