You want to add("foo", foo.getBody()). What's happening now is the the entire Zone, inlcuding its outer Div, is re-rendering, nested inside the previous version of the Zone.
In 5.2, I believe you can just add(foo) and it does the right thing (but assumes that the foo Zone has a fixed, explicit client id, via its id parameter, which is generally a good idea). On Fri, Jan 28, 2011 at 8:51 AM, Richard Hill <r...@su3analytics.com> wrote: > Hello All, > > I have two zones in my page: > > <t:zone t:id="resultsZone" id="resultsZone" show="show" > update="show">....</t:zone> > > <t:zone t:id="topTabsZone" id="topTabsZone" show="show" > update="show">....</t:zone> > > I have an actionlink bound to a handler: > > public Object onActionFromChanged() { > topTab = TopTab.Updated; > initUpdate(); > return new MultiZoneUpdate("resultsZone", > resultsZone).add("topTabsZone", topTabsZone); > } > > When the page first loads, I see this in the HTML: > > <div id="resultsZone" class="t-zone">....</div> > > and similar for topTabsZone. All well and good. But after I trigger an > actionlink, the page updates fine, but for both zones i now have nested > divs, e.g: > > <div id="resultsZone" class="t-zone"> > <div id="resultsZone" class="t-zone">... > </div> > </div> > > Subsequent clicks to the actionlink do not result in further nested > divs, just the one. > > Am i doing something wrong? I've only just noticed this today, I > upgraded from T5.1 to T5.2 this morning so don't know if a co-incidence. > > Like to get rid if possible, it means I have two divs with the same ID > in the page. > > Thanks > > Richard. > > > > > > > > > > -- 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