You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ittay Dror <it...@gmail.com> on 2009/01/24 16:05:01 UTC

about IBehavior#beforeRender

Hi,


In Component#render, the call to #notifyBehaviorsComponentBeforeRender 
is done after #markRendering is called. This means a behavior cannot add 
components to the component. Can the call be moved to before 
#markRendering is called?


Thanks,

Ittay



-- 
--
Ittay



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: about IBehavior#beforeRender

Posted by Ittay Dror <it...@gmail.com>.

igor.vaynberg@gmail.com wrote:
> Behaviors are not meant for adding components, only to modifying the
> ones they are attached to. What is your usecase.
>   
well, if there's no problem to move it before the call to 
#markRendering, then it would be able to add components, right? why not 
allow this?

ittay
> -igor
>
> On 1/24/09, Ittay Dror <it...@gmail.com> wrote:
>   
>> Hi,
>>
>>
>> In Component#render, the call to #notifyBehaviorsComponentBeforeRender
>> is done after #markRendering is called. This means a behavior cannot add
>> components to the component. Can the call be moved to before
>> #markRendering is called?
>>
>>
>> Thanks,
>>
>> Ittay
>>
>>
>>
>> --
>> --
>> Ittay
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   

-- 
--
Ittay


Re: about IBehavior#beforeRender

Posted by ig...@gmail.com.
Behaviors are not meant for adding components, only to modifying the
ones they are attached to. What is your usecase.

-igor

On 1/24/09, Ittay Dror <it...@gmail.com> wrote:
> Hi,
>
>
> In Component#render, the call to #notifyBehaviorsComponentBeforeRender
> is done after #markRendering is called. This means a behavior cannot add
> components to the component. Can the call be moved to before
> #markRendering is called?
>
>
> Thanks,
>
> Ittay
>
>
>
> --
> --
> Ittay
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org