FacetTag (Java EE 5)

Java EE API


javax.faces.webapp Class FacetTag

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

public class FacetTag
extends TagSupport

Extends: TagSupport

FacetTag 是一种 JSP 机制,用来表示 javax.faces.component.UIComponent 将作为 facet 添加到其父标记关联的组件。

FacetTag 必须有且只有一个子标记。此子标记必须为表示单个 javax.faces.component.UIComponent 实例的 UIComponentTag 实例。

英文文档:

FacetTag is the JSP mechanism for denoting a UIComponent is to be added as a facet to the component associated with its parent.

A FacetTag must have one and only one child. This child must be a UIComponentTag instance representing a single UIComponent instance.

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
 String
 void
 void
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public FacetTag()
英文文档:

FacetTag

public FacetTag()
Method Detail

public String getName()

返回分配给此 facet 的名称。

英文文档:

getName

public String getName()

Return the name to be assigned to this facet.


public void setName(String name)

设置分配给此 facet 的名称。

name 新的 facet 名称
英文文档:

setName

public void setName(String name)

Set the name to be assigned to this facet.

Parameters:
name - The new facet name

public void release()

释放此标记实例分配的任何资源。

英文文档:

release

public void release()

Release any resources allocated by this tag instance.

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

public int doStartTag() throws JspException

返回 EVAL_BODY_INCLUDE,以促使对嵌套正文求值。

英文文档:

doStartTag

public int doStartTag()
               throws JspException

Return EVAL_BODY_INCLUDE to cause nested body content to be evaluated.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
SKIP_BODY
Throws:
JspException - if an error occurs while processing this tag
See Also:
Tag.doStartTag()


Submit a bug or feature

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

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

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