Out of interest: Aren't you just renaming the setupRender event here? Or does this approach allow some nifty things that are not possible using the ordinary events?
-- Chris On Mon, Nov 5, 2012 at 5:24 PM, Charlouze <[email protected]> wrote: > Hey, > > I needed a similar behavior and you just need this mixin : > > public class Prepare { > @Parameter > private Object[] context; > > @Inject > private ComponentResources componentResources; > > void setupRender() { > componentResources.triggerEvent("prepare", context, null); > } > } > > 2012/11/5 Thiago H de Paula Figueiredo <[email protected]> > >> On Sun, 04 Nov 2012 14:55:53 -0200, membersound <[email protected]> >> wrote: >> >> Hi, >>> >> >> Hi! >> >> >> can I specify a onPrepareFromGrid() method somehow? >>> >>> I tried <t:grid t:id="mygrid" id="mygrid" /> >>> >>> onPrepareFromMygrid() { >>> sysout("never gets called"); >>> } >>> >>> Can't I assign a onPrepare method only to a specific grid? >>> >> >> No, Grid doesn't trigger any such event. Why do you need that? >> >> -- >> Thiago H. de Paula Figueiredo >> >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: >> users-unsubscribe@tapestry.**apache.org<[email protected]> >> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
