Package org.apache.myfaces.taglib.core
Class ValueChangeListenerTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.myfaces.taglib.core.GenericListenerTag<EditableValueHolder,ValueChangeListener>
-
- org.apache.myfaces.taglib.core.ValueChangeListenerTag
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
@JSFJspTag(name="f:valueChangeListener", bodyContent="empty") public class ValueChangeListenerTag extends GenericListenerTag<EditableValueHolder,ValueChangeListener>
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.
- Version:
- $Revision$ $Date$
- Author:
- Manfred Geiler (latest modification by $Author$)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueChangeListenerTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addListener(EditableValueHolder editableValueHolder, ValueChangeListener valueChangeListener)
protected ValueChangeListener
createDelegateListener(javax.el.ValueExpression type, javax.el.ValueExpression binding)
void
setBinding(javax.el.ValueExpression binding)
Value binding expression that evaluates to an implementation of the javax.faces.event.ValueChangeListener interface.void
setType(javax.el.ValueExpression type)
The name of a Java class that implements ValueChangeListener.-
Methods inherited from class org.apache.myfaces.taglib.core.GenericListenerTag
createListener, doStartTag, release
-
-
-
-
Method Detail
-
addListener
protected void addListener(EditableValueHolder editableValueHolder, ValueChangeListener valueChangeListener)
- Specified by:
addListener
in classGenericListenerTag<EditableValueHolder,ValueChangeListener>
-
createDelegateListener
protected ValueChangeListener createDelegateListener(javax.el.ValueExpression type, javax.el.ValueExpression binding)
- Specified by:
createDelegateListener
in classGenericListenerTag<EditableValueHolder,ValueChangeListener>
-
setType
@JSFJspAttribute(className="javax.el.ValueExpression", deferredValueType="java.lang.String") public void setType(javax.el.ValueExpression type)
The name of a Java class that implements ValueChangeListener.- Overrides:
setType
in classGenericListenerTag<EditableValueHolder,ValueChangeListener>
-
setBinding
@JSFJspAttribute(className="javax.el.ValueExpression", deferredValueType="javax.faces.event.ValueChangeListener") public void setBinding(javax.el.ValueExpression binding)
Value binding expression that evaluates to an implementation of the javax.faces.event.ValueChangeListener interface.- Overrides:
setBinding
in classGenericListenerTag<EditableValueHolder,ValueChangeListener>
-
-