Class ActionListenerHandlerBase
java.lang.Object
jakarta.faces.view.facelets.TagHandler
com.sun.faces.facelets.tag.TagHandlerImpl
com.sun.faces.facelets.tag.jsf.core.ActionListenerHandlerBase
- All Implemented Interfaces:
ActionSource2AttachedObjectHandler
,AttachedObjectHandler
,FaceletHandler
- Direct Known Subclasses:
ActionListenerHandler
,ResetValuesHandler
public abstract class ActionListenerHandlerBase extends TagHandlerImpl implements ActionSource2AttachedObjectHandler
Register an ActionListener instance on the UIComponent associated with the closest parent UIComponent custom action.
See tag
documentation.
- Author:
- Jacob Hookom
- See Also:
ActionListener
,ActionSource
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ActionListenerHandlerBase(TagConfig config)
-
Method Summary
Modifier and Type Method Description void
apply(FaceletContext ctx, UIComponent parent)
Process changes on a particular UIComponentabstract void
applyAttachedObject(FacesContext context, UIComponent parent)
Take the argumentparent
and apply this attached object to it.String
getFor()
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 Details
-
ActionListenerHandlerBase
- Parameters:
config
-
-
-
Method Details
-
apply
Description copied from interface:FaceletHandler
Process changes on a particular UIComponent
- Specified by:
apply
in interfaceFaceletHandler
- Parameters:
ctx
- the current FaceletContext instance for this executionparent
- the parent UIComponent to operate upon- Throws:
IOException
- if unable to loadrelativePath
-
applyAttachedObject
Description copied from interface:AttachedObjectHandler
Take the argument
parent
and apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface.- Specified by:
applyAttachedObject
in interfaceAttachedObjectHandler
- Parameters:
context
- TheFacesContext
for this requestparent
- TheUIComponent
to which this particular attached object must be applied.
-
getFor
Description copied from interface:AttachedObjectHandler
Return the value of the "for" attribute specified by the page author on the tag for this
AttachedObjectHandler
.- Specified by:
getFor
in interfaceAttachedObjectHandler
- Returns:
- the value of the "for" attribute for this attached object
-