Hi In the simple example below I get the correct result after clicking on the "update: two" hyprlink (the correct zone is updated):
update: one (hyperlink) UPDATED two BUT when I modify the page .tml and put the body inside a <html><body>...</body></html> in stead of only inside a <html>...</htm> The following html source get generated by tapestry at the bottom of the page and... <script src="assets/scriptaculous/5.0.13/prototype.js" type="text/javascript"></script><script src="assets/scriptaculous/5.0.13/scriptaculous.js" type="text/javascript"></script><script src="assets/scriptaculous/5.0.13/effects.js" type="text/javascript"></script><script src="assets/tapestry/5.0.13/tapestry.js" type="text/javascript"></script><script type="text/javascript"> <!-- Tapestry.DEBUG_ENABLED = true; Tapestry.onDOMLoaded(function() { Tapestry.init({"zone":["zone1","zone1_0"],"linkZone":[["update","zone1"],["update_0","zone1"]]}); }); // --> ...and the result is incorrect ("zone1_0" should have been updated and not "zone1"): UPDATED two update: two (hyperlink) Here is all the code: Page code: ZonePage.tml <html xmlns:t = "http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <t:zonecomp>one</t:zonecomp> <br/> <t:zonecomp>two</t:zonecomp> </html> public class ZonePage { } Component Code: ZoneComp.tml <t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <t:zone t:id="zone1" visible="true"> <t:delegate to="prop:activeBlock"/> </t:zone> <t:block t:id="beforeUpdate"> <t:actionlink t:id="update" zone="zone1">update: <t:body/></t:actionlink> </t:block> <t:block t:id="afterUpdate"> <p>UPDATED <t:body/></p> </t:block> </t:container> public class ZoneComp { @Persist("session") private boolean updated = false; @Inject private Block beforeUpdate; @Inject private Block afterUpdate; @Component(id="zone1") private Zone zone; public Object onActionFromUpdate() { updated = true; return zone; } public Object getActiveBlock() { if (updated) return afterUpdate; return beforeUpdate; } } Am I doing something wrong or is this a bug? Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]