- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.faces.webapp.AttributeTag
-
- All Implemented Interfaces:
- Serializable, IterationTag, JspTag, Tag
Deprecated.The Faces implementation must now provide the implementation for this class.
public class AttributeTag extends 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
-
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
-
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
-
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
-
Constructor Summary
Constructors Constructor and Description AttributeTag()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description int
doEndTag()
Deprecated.Default processing of the end tag returning EVAL_PAGE.int
doStartTag()
Deprecated.Register the specified attribute name and value with theUIComponent
instance associated with our most immediately surroundingUIComponentTag
instance, if thisUIComponent
does not already have a value for the specified attribute name.void
release()
Deprecated.Release references to any acquired resources.void
setName(String name)
Deprecated.Set the attribute name.void
setValue(String value)
Deprecated.Set the attribute value.-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
setName
public void setName(String name)
Deprecated.Set the attribute name.
- Parameters:
name
- The new attribute name
-
setValue
public void setValue(String value)
Deprecated.Set the attribute value.
- Parameters:
value
- The new attribute value
-
doStartTag
public int doStartTag() throws JspException
Deprecated.Register the specified attribute name and value with the
UIComponent
instance associated with our most immediately surroundingUIComponentTag
instance, if thisUIComponent
does not already have a value for the specified attribute name.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Returns:
- SKIP_BODY
- Throws:
JspException
- if a JSP error occurs- See Also:
Tag.doStartTag()
-
doEndTag
public int doEndTag() throws JspException
Deprecated.Description copied from class:TagSupport
Default processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- EVAL_PAGE
- Throws:
JspException
- if an error occurs while processing this tag- See Also:
Tag.doEndTag()
-
release
public void release()
Deprecated.Release references to any acquired resources.
- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
- See Also:
Tag.release()
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/webapp/AttributeTag.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.