Set an explcit id parameter for zone B. It looks repetitive, but it's the correct thing here.
On Thu, Jun 17, 2010 at 2:56 PM, Paul Stanton <p...@mapshed.com.au> wrote: > Hi All, > > I've just noticed that if you update a zone that contains another zone, you > can no longer update the contained zone. > > this may be related to my prior post regarding id's changing after a zone > update. > > see example: (click 'update zone b' which works, click 'update zone a' which > works, click 'update zone b' which doesn't work). > > public class Start > { > @InjectComponent > private Zone zoneA; > @InjectComponent > private Zone zoneB; > @Property > private String zoneAContent; > @Property > private String zoneBContent; > > private Object onActionFromLinkA() > { > zoneAContent = new Date().toString(); > return new MultiZoneUpdate("zoneA", zoneA); > } > > private Object onActionFromLinkB() > { > zoneBContent = new Date().toString(); > return new MultiZoneUpdate("zoneB", zoneB); > } > } > > tml: > > <t:zone t:id="zoneA" style="border:1px solid blue;"> > <h2>Zone A</h2> > ${zoneAContent} > <t:zone t:id="zoneB" style="border:1px solid red;"> > <h2>Zone B</h2> > ${zoneBContent} > </t:zone> > </t:zone> > > <a t:type="actionlink" t:id="linkA" zone="zoneA">Update Zone A</a> > <a t:type="actionlink" t:id="linkB" zone="zoneB">Update Zone B</a> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org