com.sun.faces.taglib.jsf_core
public class AttributeTag extends javax.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.
Modifier and Type | Field and Description |
---|---|
private javax.el.ValueExpression |
name
The name of the attribute to be created, if not already present.
|
private javax.el.ValueExpression |
value
The value to be associated with this attribute, if it is created.
|
Constructor and Description |
---|
AttributeTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag()
Register the specified attribute name and value with the
UIComponent instance associated with our most immediately
surrounding UIComponentClassicTagBase instance, if this
UIComponent does not already have a value for the
specified attribute name. |
void |
release()
Release references to any acquired resources.
|
void |
setName(javax.el.ValueExpression name)
Set the attribute name.
|
void |
setValue(javax.el.ValueExpression value)
Set the attribute value.
|
private javax.el.ValueExpression name
The name of the attribute to be created, if not already present.
private javax.el.ValueExpression value
The value to be associated with this attribute, if it is created.
public void setName(javax.el.ValueExpression name)
Set the attribute name.
name
- The new attribute namepublic void setValue(javax.el.ValueExpression value)
Set the attribute value.
value
- The new attribute valuepublic int doStartTag() throws javax.servlet.jsp.JspException
Register the specified attribute name and value with the
UIComponent
instance associated with our most immediately
surrounding UIComponentClassicTagBase
instance, if this
UIComponent
does not already have a value for the
specified attribute name.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP error occurspublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void release()
Release references to any acquired resources.
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.