Here's the Jira to commit against: https://issues.apache.org/jira/browse/TAP5-1742
I understand why returning false (and effectively cancelling the render phase, e.g. setupRender) can be advantageous, but I can't think of a use case where returning true "and" cancelling / short circuiting the render phase is of any use...? What example am I missing? Steve. On 3 November 2011 12:42, Taha Hafeez Siddiqi <tawus.tapes...@gmail.com> wrote: > > Sounds good. I will try to do it today > > regards > Taha > > On Nov 2, 2011, at 11:13 PM, Steve Eynon wrote: > >> Awesome, found it: >> >> http://tapestry.apache.org/component-rendering.html#ComponentRendering-ShortCircuiting >> >> I was thinking along these lines but wasn't sure what the exact >> semantics of returning true / false was. >> >> Am I right in thinking the Jira would be: >> >> AfterRender() in Loop component should not short circuit - return >> False and Null but not True. >> >> >> >> On 3 November 2011 01:17, Taha Hafeez Siddiqi <tawus.tapes...@gmail.com> >> wrote: >>> Hi Steve >>> >>> Short Circuiting >>> If a method returns a true or false value, this will short circuit >>> processing. Other methods within the phase that would ordinarily be invoked >>> will not be invoked. >>> >>> Most render phase methods should return void, to avoid unintentionally >>> short circuiting other methods for the same phase. >>> >>> >>> Seems like it deserves a jira. >>> >>> regards >>> Taha >>> >>> On Nov 2, 2011, at 10:02 PM, Steve Eynon wrote: >>> >>>> Cheers Taha, >>>> >>>>> in the later phases (AfterRender, CleanupRender) the order of executing >>>>> is reversed. >>>> >>>> Ah, okay (thanks). So the Mixin should be called when Loop afterRender >>>> method finally returns true ... but I'm not seeing it called at all, >>>> not even once!? >>>> >>>> >>>> P.S. Does this then mean that when using the @MixinAfter, the mixin's >>>> "later render phase" events occur before the components? >>>> >>>> >>>> (By the way, the MixinAfter docs just say, "Normally, mixins occur >>>> before the component." but mentions nothing of the later phases.) >>>> >>>> Steve. >>>> >>>> >>>> On 3 November 2011 00:02, Taha Hafeez Siddiqi <tawus.tapes...@gmail.com> >>>> wrote: >>>>> in the later phases (AfterRender, CleanupRender) the order of executing >>>>> is reversed. >>>> >>>> --------------------------------------------------------------------- >>>> 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 >> > > > --------------------------------------------------------------------- > 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