Class ActionListenerHandler
java.lang.Object
jakarta.faces.view.facelets.TagHandler
com.sun.faces.facelets.tag.TagHandlerImpl
com.sun.faces.facelets.tag.jsf.core.ActionListenerHandlerBase
com.sun.faces.facelets.tag.jsf.core.ActionListenerHandler
- All Implemented Interfaces:
ActionSource2AttachedObjectHandler,AttachedObjectHandler,FaceletHandler
public final class ActionListenerHandler extends ActionListenerHandlerBase 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 ActionListenerHandler(TagConfig config) -
Method Summary
Modifier and Type Method Description voidapplyAttachedObject(FacesContext context, UIComponent parent)Take the argumentparentand apply this attached object to it.Methods inherited from class com.sun.faces.facelets.tag.jsf.core.ActionListenerHandlerBase
apply, getForMethods inherited from class com.sun.faces.facelets.tag.TagHandlerImpl
findNextByType, findNextByTypeMethods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Constructor Details
-
ActionListenerHandler
- Parameters:
config-
-
-
Method Details
-
applyAttachedObject
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- Specified by:
applyAttachedObjectin classActionListenerHandlerBase- Parameters:
context- TheFacesContextfor this requestparent- TheUIComponentto which this particular attached object must be applied.
-