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.
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
AttributeTag()
Deprecated.
|
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 the
UIComponent instance associated with our most immediately
surrounding UIComponentTag instance, if this UIComponent
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.
|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public void setName(String name)
Set the attribute name.
name
- The new attribute namepublic void setValue(String value)
Set the attribute value.
value
- The new attribute valuepublic int doStartTag() throws JspException
Register the specified attribute name and value with the
UIComponent
instance associated with our most immediately
surrounding UIComponentTag
instance, if this UIComponent
does not already have a value for the specified attribute name.
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if a JSP error occursTag.doStartTag()
public int doEndTag() throws JspException
TagSupport
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- if an error occurs while processing this tagTag.doEndTag()
public void release()
Release references to any acquired resources.
release
in interface Tag
release
in class TagSupport
Tag.release()
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.