You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Marios Skounakis <ms...@gmail.com> on 2013/06/10 13:25:50 UTC
Reusing behaviors across components
Hi all,
Is there any obvious reason why adding the same behavior instance that
implements onBeforeRender and onAfterRender cannot be used on multiple
components on the same form?
Thanks
Marios
Re: Reusing behaviors across components
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
You can reuse instances of simple behaviors.
You cannot reuse behaviors which can work with only one component like Ajax
behaviors because they need the component to create the callback url.
On Mon, Jun 10, 2013 at 2:25 PM, Marios Skounakis <ms...@gmail.com> wrote:
> Hi all,
>
> Is there any obvious reason why adding the same behavior instance that
> implements onBeforeRender and onAfterRender cannot be used on multiple
> components on the same form?
>
> Thanks
> Marios
>