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 int
doStartTag()
Create a new instance of the specifiedPhaseListener
class, and register it with theUIComponent
instance associated with our most immediately surroundingUIComponentELTag
instance, if theUIComponent
instance was created by this execution of the containing JSP page.void
release()
Release references to any acquired resources.void
setBinding(jakarta.el.ValueExpression binding)
void
setType(jakarta.el.ValueExpression type)
Set the fully qualified class name of thePhaseListener
instance 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
PhaseListener
instance 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
PhaseListener
class, and register it with theUIComponent
instance associated with our most immediately surroundingUIComponentELTag
instance, if theUIComponent
instance was created by this execution of the containing JSP page.- Specified by:
doStartTag
in interfacejakarta.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in 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:
release
in interfacejakarta.servlet.jsp.tagext.Tag
- Overrides:
release
in classjakarta.servlet.jsp.tagext.TagSupport
-