AttributeTag (Java EE 5)

Java EE API


javax.faces.webapp Class AttributeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.faces.webapp.AttributeTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

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

Extends: TagSupport

提供以下功能的标记实现:向内部嵌套标记的组件添加指定的名称和 String 值,前提是该组件不包含具有相同名称的属性。此标记没有对当前创建的页面创建任何输出。

英文文档:

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
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
 
Constructor Summary
 
Method Summary
 int
 int
 void
 void
 void
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public AttributeTag()
英文文档:

AttributeTag

public AttributeTag()
Deprecated. 
Method Detail

public void setName(String name)

设置属性名称。

name 新的属性名称
英文文档:

setName

public void setName(String name)
Deprecated. 

Set the attribute name.

Parameters:
name - The new attribute name

public void setValue(String value)

设置属性值。

value 新的属性值
英文文档:

setValue

public void setValue(String value)
Deprecated. 

Set the attribute value.

Parameters:
value - The new attribute value

public int doStartTag() throws JspException

向最接近的 UIComponentTag 实例关联的 UIComponent 实例注册指定的属性名和值(如果此 UIComponent 的指定属性名没有值)。

ThrowsJspException: 如果发生 JSP 错误
英文文档:

doStartTag

public int doStartTag()
               throws JspException
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.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
SKIP_BODY
Throws:
JspException - if a JSP error occurs
See Also:
Tag.doStartTag()

public int doEndTag() throws JspException
英文文档:

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 interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
EVAL_PAGE
Throws:
JspException - if an error occurs while processing this tag
See Also:
Tag.doEndTag()

public void release()

释放对任何所需资源的引用。

英文文档:

release

public void release()
Deprecated. 

Release references to any acquired resources.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport
See Also:
Tag.release()


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!