Hi,

I have this construction in my .tml (simplified):

<t:Zone t:id="zone1" id="zone1">
  <t:Zone t:id="zone2" id="zone2">
    <t:Form t:id="form" t:zone="zone2">
      <t:Submit />
    </t:Form>
  </t:Zone>
</t:Zone>

In my page class:

@InjectComponent
private Zone Zone2;

public void onSubmitFromForm() {
        ajaxResponseRenderer.addRender(zone2.getClientId(), zone2);
}


So I just want to update the inner zone (zone2). But it always updates
zone1.

I've also tested this:

$('#zone1').bind(Tapestry.ZONE_UPDATED_EVENT, function(event) {
        alert("zone1 updated");
});

$('#zone2').bind(Tapestry.ZONE_UPDATED_EVENT, function(event) {
        alert("zone2 updated");
});

Submitting the form results in an alert with 'zone1 updated'.

Is this normal behaviour and am I just doing it in a wrong way? Or maybe I'm
doing something else wrong?

Thanks,
Nathan


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Zone-update-triggers-update-on-parent-Zone-tp5541247p5541247.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