Package com.sun.faces.taglib.jsf_core
Class PhaseListenerTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
com.sun.faces.taglib.jsf_core.PhaseListenerTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
public class PhaseListenerTag
extends jakarta.servlet.jsp.tagext.TagSupport
Tag implementation that creates a PhaseListener instance and registers it on the UIViewRoot
associated with our most immediate surrounding instance of a tag whose component is an instance of
UIViewRoot. This tag creates no output to the page currently being created.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PhaseListenerTag() -
Method Summary
Modifier and Type Method Description intdoStartTag()Create a new instance of the specifiedPhaseListenerclass, and register it with theUIComponentinstance associated with our most immediately surroundingUIComponentELTaginstance, if theUIComponentinstance was created by this execution of the containing JSP page.voidrelease()Release references to any acquired resources.voidsetBinding(jakarta.el.ValueExpression binding)voidsetType(jakarta.el.ValueExpression type)Set the fully qualified class name of thePhaseListenerinstance to be created.
-
Constructor Details
-
PhaseListenerTag
public PhaseListenerTag()
-
-
Method Details
-
setType
public void setType(jakarta.el.ValueExpression type)Set the fully qualified class name of the
PhaseListenerinstance to be created.- Parameters:
type- The new class name
-
setBinding
public void setBinding(jakarta.el.ValueExpression binding) -
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionCreate a new instance of the specified
PhaseListenerclass, and register it with theUIComponentinstance associated with our most immediately surroundingUIComponentELTaginstance, if theUIComponentinstance was created by this execution of the containing JSP page.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException- if a JSP error occurs
-
release
public void release()Release references to any acquired resources.
- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-