Package com.sun.faces.taglib.jsf_core
Class AttributeTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
com.sun.faces.taglib.jsf_core.AttributeTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag
,jakarta.servlet.jsp.tagext.JspTag
,jakarta.servlet.jsp.tagext.Tag
,Serializable
public class AttributeTag
extends jakarta.servlet.jsp.tagext.TagSupport
Tag implementation that adds an attribute with a specified name and String value to the component whose tag it is nested inside, if the component does not already contain an attribute with the same name. This tag creates no output to the page currently being created.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AttributeTag()
-
Method Summary
Modifier and Type Method Description int
doEndTag()
int
doStartTag()
Register the specified attribute name and value with theUIComponent
instance associated with our most immediately surroundingUIComponentClassicTagBase
instance, if thisUIComponent
does not already have a value for the specified attribute name.void
release()
Release references to any acquired resources.void
setName(jakarta.el.ValueExpression name)
Set the attribute name.void
setValue(jakarta.el.ValueExpression value)
Set the attribute value.
-
Constructor Details
-
AttributeTag
public AttributeTag()
-
-
Method Details
-
setName
public void setName(jakarta.el.ValueExpression name)Set the attribute name.
- Parameters:
name
- The new attribute name
-
setValue
public void setValue(jakarta.el.ValueExpression value)Set the attribute value.
- Parameters:
value
- The new attribute value
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionRegister the specified attribute name and value with the
UIComponent
instance associated with our most immediately surroundingUIComponentClassicTagBase
instance, if thisUIComponent
does not already have a value for the specified attribute name.- 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
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException- Specified by:
doEndTag
in interfacejakarta.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjakarta.servlet.jsp.tagext.TagSupport
- Throws:
jakarta.servlet.jsp.JspException
-
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
-