Right, sweet! I get you! When the Any component renders as a whole, it receives the render phase methods which are picked up the Mixin. The Mixin then fires its own component events with the same name, which bubble up the component hierarchy.
That makes sense, I'll try it out tomorrow... (By the way, this would be a good thing to put in the JavaDocs!) Cheers Thiago. On 19 October 2011 22:54, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > On Wed, 19 Oct 2011 11:46:09 -0200, Steve Eynon > <steve.ey...@alienfactory.co.uk> wrote: > >> Hello, > > Hi! > >> Does anyone have any examples on how to use the RenderNotification Mixin? >> I would like some pre and post render events to be fired on a >> component after it's handled an Ajax event and returned a Zone which >> it contains. >> Documentation points to the RenderNotification Mixin but I can't >> figure out how it works, for the code just seems propagate BeginRender >> and AfterRender events... but surely if these events are fired in the >> Mixin, they would also be fired in the containing component, right? > > Right. ;) AJAX requests don't trigger afterRender nor beforeRender in the > containing component or page, so this mixin is a way of making sure they're > invoked. > > I'd try this (not tested): > > <div t:type="Zone" id="zone"> > <div t:type="Any" t:mixins="RenderNotification"> > <!-- zone content -> > </div> > </div> > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
