Top Description Fields Constructors Methods
javax.faces.webapp

public Class AttributeTag

extends TagSupport
Class Inheritance
Imports
javax.el.ELContext, .ExpressionFactory, javax.faces.component.UIComponent, javax.faces.context.FacesContext, javax.servlet.jsp.JspException, javax.servlet.jsp.tagext.TagSupport

Deprecated

The Faces implementation must now provide the implementation for this class.

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.

Field Summary

Modifier and TypeField and Description
private String
name

The name of the attribute to be created, if not already present.

private static final long
private String
value

The value to be associated with this attribute, if it is created.

Inherited from javax.servlet.jsp.tagext.TagSupport:
idpageContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
doEndTag()

Overrides javax.servlet.jsp.tagext.TagSupport.doEndTag.

Implements javax.servlet.jsp.tagext.Tag.doEndTag.

Default processing of the end tag returning EVAL_PAGE.
public int
doStartTag()

Overrides javax.servlet.jsp.tagext.TagSupport.doStartTag.

Implements javax.servlet.jsp.tagext.Tag.doStartTag.

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.

public void
release()

Overrides javax.servlet.jsp.tagext.TagSupport.release.

Implements javax.servlet.jsp.tagext.Tag.release.

Release references to any acquired resources.

public void
setName(String
The new attribute name
name
)

Set the attribute name.

public void
setValue(String
The new attribute value
value
)

Set the attribute value.

Inherited from javax.servlet.jsp.tagext.TagSupport:
doAfterBodyfindAncestorWithClassgetIdgetParentgetValuegetValuesremoveValuesetIdsetPageContextsetParentsetValue

Field Detail

nameback to summary
private String name

The name of the attribute to be created, if not already present.

serialVersionUIDback to summary
private static final long serialVersionUID
valueback to summary
private String value

The value to be associated with this attribute, if it is created.

Constructor Detail

AttributeTagback to summary
public AttributeTag()

Method Detail

doEndTagback to summary
public int doEndTag() throws JspException

Overrides javax.servlet.jsp.tagext.TagSupport.doEndTag.

Implements javax.servlet.jsp.tagext.Tag.doEndTag.

Doc from javax.servlet.jsp.tagext.TagSupport.doEndTag.

Default processing of the end tag returning EVAL_PAGE.

Returns:int

EVAL_PAGE

Annotations
@Override
Exceptions
JspException:
if an error occurs while processing this tag
doStartTagback to summary
public int doStartTag() throws JspException

Overrides javax.servlet.jsp.tagext.TagSupport.doStartTag.

Implements javax.servlet.jsp.tagext.Tag.doStartTag.

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.

Returns:int

Doc from javax.servlet.jsp.tagext.TagSupport.doStartTag.

SKIP_BODY

Annotations
@Override
Exceptions
JspException:
if a JSP error occurs
releaseback to summary
public void release()

Overrides javax.servlet.jsp.tagext.TagSupport.release.

Implements javax.servlet.jsp.tagext.Tag.release.

Release references to any acquired resources.

Annotations
@Override
setNameback to summary
public void setName(String name)

Set the attribute name.

Parameters
name:String

The new attribute name

setValueback to summary
public void setValue(String value)

Set the attribute value.

Parameters
value:String

The new attribute value