<binding> element

Appears in: <component>

Binds a parameter of an embedded component to an OGNL expression rooted in its container.

In an instantiated component, bindings can be accessed with the OGNL expression bindings.name.

If the expression attribute is omitted, then the body of the element is used. This is useful when the expression is long, or contains problematic characters (such as a mix of single and double quotes).

Figure C.5. <binding> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the parameter to bind.
expressionstringyes The OGNL expression, relative to the container, to be bound to the parameter.