This component replicates the 'Value Change Listener' functionality on the client side. It can be used
when the user would like a change in the value of one control to trigger off changes in the states of
other controls. One or more Javascript Listeners can be nested within the source control (a control
belonging to the 'javax.faces.Input' family). When the value of the source control is modified, the
listeners are triggered and the states of the target controls modified.
Unless otherwise specified, all attributes accept static values or EL expressions.
Attributes |
Name | Required | Request-time | Type | Description |
for | false | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| for - the id of the target control |
expressionValue | true | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| the javascript expression to evaluate. The keyword '$srcElem' resolves to
the source control and the keyword '$destElem' resolves to the target control |
property | false | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| The result of the evaluated expression is assigned to the specified property
of the target control |
bodyTagEvent | false | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Events are triggered by the 'onchange' event of the source control. Here,
an additional event can be specified (onload?).
If specified this JavaScript event will be inserted in the
body tag. JavaScript code will be the same like it is
rendered in the parent component. |