Behaviours are Objects that can participate in the rendering of a component.
They serve to extract behaviour (hence the name) that is common to various
components and which cannot be accommodated in the inheritance hierarchy.
For example, you can add javascript handlers to many html tags, so you can't
really find a nice inheritance hierarchy where a particular subclass tree
can have a javascript handler and all others cannot. Instead, you extract
the code to a behaviour (for example, there AbstractDefaultAjaxBehaviour to
look at) and add it to the components as needed.

hth

Thomas
---
Thomas Mäder
www.devotek-it.ch

On Sun, Jan 18, 2009 at 10:02 AM, HHB <hubaghd...@yahoo.ca> wrote:

>
> Hey,
> In easy words, what are Wicket Behaviors? what is their role?
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/What-are-Behaviors-in-Wicket--tp21525487p21525487.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to