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

Reply via email to