Class ValueChangeListenerHandler
- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandler
-
- com.sun.faces.facelets.tag.TagHandlerImpl
-
- com.sun.faces.facelets.tag.faces.core.ValueChangeListenerHandler
-
- All Implemented Interfaces:
AttachedObjectHandler,EditableValueHolderAttachedObjectHandler,FaceletHandler,ValueHolderAttachedObjectHandler
public final class ValueChangeListenerHandler extends TagHandlerImpl implements EditableValueHolderAttachedObjectHandler
Register an ValueChangeListener instance on the UIComponent associated with the closest parent UIComponent custom action. See tag documentation.- Author:
- Jacob Hookom
-
-
Field Summary
-
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor Description ValueChangeListenerHandler(TagConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(FaceletContext ctx, UIComponent parent)See taglib documentation.voidapplyAttachedObject(FacesContext context, UIComponent parent)Take the argumentparentand apply this attached object to it.StringgetFor()Return the value of the "for" attribute specified by the page author on the tag for thisAttachedObjectHandler.-
Methods inherited from class com.sun.faces.facelets.tag.TagHandlerImpl
findNextByType, findNextByType
-
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Constructor Detail
-
ValueChangeListenerHandler
public ValueChangeListenerHandler(TagConfig config)
-
-
Method Detail
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
See taglib documentation.- Specified by:
applyin interfaceFaceletHandler- Parameters:
ctx- the current FaceletContext instance for this executionparent- the parent UIComponent to operate upon- Throws:
IOException- if unable to loadrelativePath
-
applyAttachedObject
public void applyAttachedObject(FacesContext context, UIComponent parent)
Description copied from interface:AttachedObjectHandlerTake the argument
parentand apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface.- Specified by:
applyAttachedObjectin interfaceAttachedObjectHandler- Parameters:
context- TheFacesContextfor this requestparent- TheUIComponentto which this particular attached object must be applied.
-
getFor
public String getFor()
Description copied from interface:AttachedObjectHandlerReturn the value of the "for" attribute specified by the page author on the tag for this
AttachedObjectHandler.- Specified by:
getForin interfaceAttachedObjectHandler- Returns:
- the value of the "for" attribute for this attached object
-
-