Class ActionListenerHandlerBase

java.lang.Object
jakarta.faces.view.facelets.TagHandler
com.sun.faces.facelets.tag.TagHandlerImpl
com.sun.faces.facelets.tag.faces.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:
  • Constructor Details

    • ActionListenerHandlerBase

      public ActionListenerHandlerBase(TagConfig config)
      Parameters:
      config -
  • Method Details

    • apply

      public void apply(FaceletContext ctx, UIComponent parent) throws IOException
      Description copied from interface: FaceletHandler

      Process changes on a particular UIComponent

      Specified by:
      apply in interface FaceletHandler
      Parameters:
      ctx - the current FaceletContext instance for this execution
      parent - the parent UIComponent to operate upon
      Throws:
      IOException - if unable to load relativePath
    • applyAttachedObject

      public abstract void applyAttachedObject(FacesContext context, UIComponent parent)
      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 interface AttachedObjectHandler
      Parameters:
      context - The FacesContext for this request
      parent - The UIComponent to which this particular attached object must be applied.
    • getFor

      public String 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 interface AttachedObjectHandler
      Returns:
      the value of the "for" attribute for this attached object