You add the @MixinAfter annotation that defers the render state behavior of the mixin after the behavior of the component. I did not add this to my exemple.
Anyway, I'm not sure but I think that there is already a prepare event for each fields (like the checkbox) of a form. 2012/11/9 membersound <memberso...@web.de> > Charlouze wrote > > Same for me, my need was to have a specific prepare action for my grid to > > display on ajax request. There is an "inPlaceUpdate" event called when > > page > > changes but the grid rendering process is done before calling this event > > in > > my component. I think it's because of the grid component that call > > componentEventResultProcessor.processResultValue(this); when handling > this > > event (the event is fired by the grid pager). > > > Could you provide a full example on this? Or tell me what is wrong with my > code? At least my method gets never called... > > <t:form> > <input t:type="checkbox" t:id="checkbox" t:value="backing.prop" > t:mixins="prepare"/> > </t:form> > > > class Backing { > boolean prop; > onPrepareFromCheckbox() { > Sysout("never gets called!"); > } > } > > > @MixinAfter > public class Prepare { > @Parameter > private Object[] context; > > @Inject > private ComponentResources componentResources; > > void setupRender() { > componentResources.triggerEvent("prepare", context, null); > } > } > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/onPrepare-from-grid-tp5717639p5717862.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 > >