Starting in Tapestry 5.4, the order of calls to AjaxResponseRender.addRender() is maintained for execution on the client; the big problem with deeply nested zones is that when updating multiple zones in one go, the order (in 5.3 and earlier) was not defined, and if zone A contains zone B, but zone B is updated first, then the results in the page don't match the expectations.
On Tue, Nov 6, 2012 at 2:03 AM, Taha Hafeez Siddiqi < tawus.tapes...@gmail.com> wrote: > Why not use AjaxResponseRenderer ? > > > On 06-Nov-2012, at 3:03 PM, llama-king <p.hv...@albourne.com> wrote: > > > Hello all, > > > > I was wondering what everyone's preferred approach to using multiple > zones > > in a hierarchy of components was. I'm not pleased with the current > pattern > > we use and figured someone might have come up with a better approach. > > > > We run a complex page; having a single zone proved very slow. > > > > We increased the number of zones to encompass specific components so as > to > > speed up the page; this worked but as a side effect we have large > numbers of > > component parameters dedicated to zones and thus long chains of > parameters > > carried through a number of components. > > > > We need to update (multiple) zones in multiple places throughout our > > component hierarchy. One good example is a text alert that needs to be > > updated by pretty much every component in the hierarchy and so we end up > > passing the 'alert zone' as a parameter to every component that needs it. > > > > I was imagining something similar to an object of session state that can > be > > initialized to hold on to the zone references and thus be injected where > > required. Or perhaps as is the case with the zoned alert component, to > have > > it extend Zone and pass that around as a parameter (I already pass the > > injected Alert component as well as the related Zone all over the place; > > this allows me to centralize reusable alert messages for the component > > hierarchy, makes breakages more manageable). > > > > It's quite an open question - I do hope to hear some of your approaches! > > > > Thanks again! > > > > > > > > > > > > -- > > View this message in context: > http://tapestry.1045711.n5.nabble.com/Elegant-Handling-of-Multiple-Zones-in-Deep-Hierarchies-of-Components-tp5717698.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 > > -- 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