UI-Component Sets
Project Documentation


Tag name: <f:valueChangeListener>
Tag class: org.apache.myfaces.taglib.core.ValueChangeListenerTag
Facelet Tag Handler: org.apache.myfaces.view.facelets.tag.jsf.core.ValueChangeListenerHandler
Adds the specified ValueChangeListener to the nearest parent UIComponent (which is expected to be a UIInput component).

Whenever the form containing the parent UIComponent is submitted, an instance of the specified type is created. If the submitted value from the component is different from the component's current value then a ValueChangeEvent is queued. When the ValueChangeEvent is processed (at end of the validate phase for non-immediate components, or at end of the apply-request-values phase for immediate components) the object's processValueChange method is invoked.

Unless otherwise specified, all attributes accept static values or EL expressions.


Name Type Required Description
binding org.apache.myfaces.taglib.core.ValueChangeListenerTag false Value binding expression that evaluates to an implementation of the javax.faces.event.ValueChangeListener interface.
type javax.el.ValueExpression false The name of a Java class that implements ValueChangeListener.

Facelets Attributes

Name Type Required Description
for false TODO: Document me!