|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
javax.faces.webapp Class UIComponentELTag
java.lang.Objectjavax.faces.webapp.UIComponentTagBase
javax.faces.webapp.UIComponentClassicTagBase
javax.faces.webapp.UIComponentELTag
- 所有已实现的接口:
- BodyTag, IterationTag, JspIdConsumer, JspTag, Tag
public abstract class UIComponentELTag
- extends UIComponentClassicTagBase
- implements Tag
UIComponentELTag specializes its superclass to allow for
properties that take their values from EL API expressions.
This tag is designed for use with Faces version 1.2 and JSP version 2.1 containers.
| 字段摘要 |
|---|
| Fields inherited from class javax.faces.webapp.UIComponentClassicTagBase |
|---|
bodyContent, pageContext, UNIQUE_ID_PREFIX |
| Fields inherited from class javax.faces.webapp.UIComponentTagBase |
|---|
log |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| 构造器摘要 | |
|---|---|
UIComponentELTag()
|
|
| 方法摘要 | |
|---|---|
protected UIComponent |
createComponent(FacesContext context,
String newId)
Create and return a new child component of the type returned by calling getComponentType(). |
protected ELContext |
getELContext()
Return the ELContext for the FacesContext for
this request. |
protected boolean |
hasBinding()
Return true if this component has a
non-null binding attribute. |
void |
release()
Release any resources allocated during the execution of this tag handler. |
void |
setBinding(ValueExpression binding)
Set the value expression for our component. |
protected void |
setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. |
void |
setRendered(ValueExpression rendered)
Set an override for the rendered attribute. |
| 类方法继承 javax.faces.webapp.UIComponentTagBase |
|---|
getComponentType, getRendererType |
| 类方法继承 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
doEndTag, doStartTag, getParent, setPageContext, setParent |
| 构造器详细信息 |
|---|
UIComponentELTag
public UIComponentELTag()
| 方法详细信息 |
|---|
setBinding
public void setBinding(ValueExpression binding) throws JspException
Set the value expression for our component.
- 参数:
binding- The new value expression- 抛出异常:
JspException- if an error occurs
hasBinding
protected boolean hasBinding()
- Description copied from class:
UIComponentClassicTagBase Return
trueif this component has a non-nullbinding attribute. This method is necessary to allow subclasses that expose thebindingproperty as an Faces 1.1 style EL property as well as subclasses that expose it as an EL API property.- 规范说明:
hasBindingin classUIComponentClassicTagBase
setRendered
public void setRendered(ValueExpression rendered)
Set an override for the rendered attribute.
- 参数:
rendered- The new value for rendered attribute
getELContext
protected ELContext getELContext()
Return the
ELContextfor theFacesContextfor this request.This is a convenience for
getFacesContext().getELContext().- 重写:
getELContextin classUIComponentTagBase
release
public void release()
Release any resources allocated during the execution of this tag handler.
- 规范说明:
releasein interfaceTag- 重写:
releasein classUIComponentClassicTagBase
setProperties
protected void setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified
UIComponentwas in fact created during the execution of this tag handler instance, and this call will occur BEFORE theUIComponentis added to the view.Tag subclasses that want to support additional set properties must ensure that the base class
setProperties()method is still called. A typical implementation that supports extra propertiesfooandbarwould look something like this:protected void setProperties(UIComponent component) { super.setProperties(component); if (foo != null) { component.setAttribute("foo", foo); } if (bar != null) { component.setAttribute("bar", bar); } }The default implementation overrides the following properties:
rendered- Set if a value for therenderedproperty is specified for this tag handler instance.rendererType- Set if thegetRendererType()method returns a non-null value.
- 规范说明:
setPropertiesin classUIComponentClassicTagBase
- 参数:
component-UIComponentwhose properties are to be overridden
createComponent
protected UIComponent createComponent(FacesContext context, String newId) throws JspException
Create and return a new child component of the type returned by calling
getComponentType(). If thisUIComponentELTaghas a non-nullbindingattribute, this is done by callApplication.createComponent(java.lang.String)with theValueExpressioncreated for thebindingattribute, and theValueExpressionwill be stored on the component. Otherwise,Application.createComponent(java.lang.String)is called with only the component type. Finally, initialize the components id and other properties.- 规范说明:
createComponentin classUIComponentClassicTagBase
- 参数:
context-FacesContextfor the current requestnewId- id of the component- 抛出异常:
JspException
|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.
