...
Where conflicts occur, the parameters bound using the Component annotation will take precendence precedence over parameter bindings in the template.
...
Prefix | Description |
asset | The relative path to an asset file (which must exist) . |
block | The id of a block within the template . |
component | The id of another component within the same template . |
context | Context asset: path from context root . |
literal | A literal string. |
nullfieldstrategy | Used to locate a pre-defined NullFieldStrategy |
message | Retrieves a value from the component's message catalog. |
...
prop | A property expression to read or update |
...
translate | The name of a configured translator . |
validate | A validator specification used to create some number of field validators . |
var | Allows a render variable of the component to be read or updated . |
Most of these binding prefixes allow parameters to be bound to read-only values; for instance a parameter bound to "message:some-key" will see the message for "some-key" from its container's message catalog in the field. If the component tries to update the parameter (by setting the value of the field), a runtime exception will be thrown to indicate that the value is read-only.
...
Property expressions are used to link a parameter of a component to a property of its container. Property expressions can navigate a series of properties and/or invoke methods, as well as several other useful patterns. See Property expressions have their own documentationExpressions.
The default binding prefix in most cases is "prop:", which is why it is usually omitted.
...
You may set a default value for optional parameters as you would for any other field. In the Count component, the min parameter has a default value of 1. That value is used unless the min parameter is bound, in which case, the bound value supercedes supersedes the default.
Anchor | ||||
---|---|---|---|---|
|
Inherited Parameter Bindings
A special prefix, "inherit:" is used to identify the name of a parameter of the containing component. If the parameter is bound in the containing component, then it will be bound to the same value in the embedded component.
...