javax.faces.webapp
Class AttributeTag
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.TagSupport
       javax.faces.webapp.AttributeTag
javax.faces.webapp.AttributeTag
- All Implemented Interfaces: 
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
- public class AttributeTag 
- extends javax.servlet.jsp.tagext.TagSupport
This tag associates an attribute with the nearest parent
 UIComponent. 
 
 When the value is not an EL expression, this tag has the same effect
 as calling component.getAttributes.put(name, value). When the attribute
 name specified matches a standard property of the component, that
 property is set. However it is also valid to assign attributes
 to components using any arbitrary name; the component itself won't
 make any use of these but other objects such as custom renderers,
 validators or action listeners can later retrieve the attribute
 from the component by name.
 
 When the value is an EL expression, this tag has the same effect
 as calling component.setValueBinding. A call to method
 component.getAttributes().get(name) will then cause that
 expression to be evaluated and the result of the expression is
 returned, not the original EL expression string.
 
 See the javadoc for UIComponent.getAttributes for more details.
 
 Unless otherwise specified, all attributes accept static values
 or EL expressions.
 
 see Javadoc of JSF Specification
- Version:
- $Revision: 676278 $ $Date: 2008-07-13 03:35:04 -0500 (Sun, 13 Jul 2008) $
- Author:
- Manfred Geiler (latest modification by $Author: skitching $)
- See Also:
- Serialized Form
 
| 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 | 
 
 
 
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport | 
| doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AttributeTag
public AttributeTag()
setName
public void setName(String name)
- The name of the attribute.
 
- 
 
setValue
public void setValue(String value)
- The attribute's value.
 
- 
 
doStartTag
public int doStartTag()
               throws javax.servlet.jsp.JspException
- 
- Specified by:
- doStartTagin interface- javax.servlet.jsp.tagext.Tag
- Overrides:
- doStartTagin class- javax.servlet.jsp.tagext.TagSupport
 
- 
- Throws:
- javax.servlet.jsp.JspException
 
release
public void release()
- 
- Specified by:
- releasein interface- javax.servlet.jsp.tagext.Tag
- Overrides:
- releasein class- javax.servlet.jsp.tagext.TagSupport
 
- 
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.