In some cases, you may want to create functionality that is modular and not tied to a specific widget. For this, you can use a behavior. These behaviors provide a generic behavioral model but not a visual component. Examples of behaviors are the resize and drag-and-drop functionality.
Behaviors provide advanced functionality to a widget, and generally, can be used with any supported markup language. The resize behavior, for example, can be applied both to BTL and XHTML widgets.
Note
By default, the behavior
attribute, which you use to add behaviors to a widget, resides in the XEL namespace, while Backbase-defined behaviors are bound to the BTL namespace.
The behavior
tag can have the following attributes:
Attribute |
Description |
---|---|
|
Space-separated list of extended behaviors. Names must be fully qualified. |
|
Space-separated list of implemented interfaces. Names must be fully qualified. |
|
The name of the behavior. You must use the value of this attribute... |