<static-binding> element

Appears in: <component>

Binds a parameter of an embedded component to a static value. The value, which is stored as a string, is specified as the value attribute, or as the wrapped contents of the <static-binding> tag. Leading and trailing whitespace is removed.

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

Figure C.32. <static-binding> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the parameter to bind.
valuestringno The string value to be used. If omitted, the wrapped character data is used instead (which is more convienient if the value is large, or contains problematic punctuation).