4.3. Parameter Directions

Components can not only read the values from the parameter binding properties but also update them. Components specify this ability for each parameter via the parameter-attribute called direction in the component specification. Parameter directions can be one of three different types from a usage stand-point.

[Note]Note
The parameter directions are a little different from a specification stand-point which we will cover later.

in

The parameter binding property is only read, never updated.

...
<span jwcid="@Insert" value="ognl:userName" />
...

out

The parameter binding property is only updated, never read.

...
<span jwcid="@Foreach" ... value="ognl:iterationValue">
    ...
</span>
...

in-out

The parameter binding property is both read and updated.

...
<input jwcid="@TextField" value="ognl:userName" />
...

[Note]Note
Due to the nature of the bindings, out and in-out parameters can only have dynamic or inherited bindings.