Tomahawk tag library 2.0.
Tag jsValueChangeListener


Value change listener on client side.

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.



Tag Information
Tag Classorg.apache.myfaces.custom.jslistener.JsValueChangeListenerTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
forfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
for - the id of the target control
expressionValuetruefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
the javascript expression to evaluate. The keyword '$srcElem' resolves to the source control and the keyword '$destElem' resolves to the target control
propertyfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The result of the evaluated expression is assigned to the specified property of the target control
bodyTagEventfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
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.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.