Class UIComponentTag
- java.lang.Object
-
- javax.faces.webapp.UIComponentTagBase
-
- javax.faces.webapp.UIComponentClassicTagBase
-
- javax.faces.webapp.UIComponentTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspIdConsumer,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
UIComponentBodyTag
public abstract class UIComponentTag extends UIComponentClassicTagBase implements javax.servlet.jsp.tagext.Tag
Deprecated.Use of this class has been replaced withUIComponentELTag, which extendsUIComponentClassicTagBaseto add properties that use the EL API introduced as part of JSP 2.1.UIComponentTagis the base class for all JSP custom actions that correspond to user interface components in a page that is rendered by JavaServer Faces.In this version of the specification,
UIComponentTagextendsUIComponentClassicTagBaseto add properties that use the Faces 1.1 Expression Language.
-
-
Field Summary
-
Fields inherited from class javax.faces.webapp.UIComponentClassicTagBase
bodyContent, pageContext, UNIQUE_ID_PREFIX
-
Fields inherited from class javax.faces.webapp.UIComponentTagBase
log
-
-
Constructor Summary
Constructors Constructor Description UIComponentTag()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected UIComponentcreateComponent(FacesContext context, java.lang.String newId)Deprecated.ImplementcreateComponentusing Faces 1.1 EL API.static UIComponentTaggetParentUIComponentTag(javax.servlet.jsp.PageContext context)Deprecated.Locate and return the nearest enclosingUIComponentTagif any; otherwise, returnnull.protected booleanhasBinding()Deprecated.Returntrueif this component has a non-nullbinding attribute.protected booleanisSuppressed()Deprecated.static booleanisValueReference(java.lang.String value)Deprecated.Returntrueif the specified value conforms to the syntax requirements of a value binding expression.voidrelease()Deprecated.Release any resources allocated during the execution of this tag handler.voidsetBinding(java.lang.String binding)Deprecated.Set the value binding expression for our component.protected voidsetProperties(UIComponent component)Deprecated.Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set.voidsetRendered(java.lang.String rendered)Deprecated.Set an override for the rendered attribute.-
Methods inherited from class javax.faces.webapp.UIComponentClassicTagBase
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doEndTag, doInitBody, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriter
-
Methods inherited from class javax.faces.webapp.UIComponentTagBase
getComponentType, getELContext, getRendererType
-
-
-
-
Method Detail
-
setBinding
public void setBinding(java.lang.String binding) throws javax.servlet.jsp.JspExceptionDeprecated.Set the value binding expression for our component.
- Parameters:
binding- The new value binding expression- Throws:
java.lang.IllegalArgumentException- if the specified binding is not a valid value binding expression.javax.servlet.jsp.JspException
-
hasBinding
protected boolean hasBinding()
Deprecated.Description copied from class:UIComponentClassicTagBaseReturn
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.- Specified by:
hasBindingin classUIComponentClassicTagBase
-
setRendered
public void setRendered(java.lang.String rendered)
Deprecated.Set an override for the rendered attribute.
- Parameters:
rendered- The new value for rendered attribute
-
isSuppressed
protected boolean isSuppressed()
Deprecated.
-
isValueReference
public static boolean isValueReference(java.lang.String value)
Deprecated.Return
trueif the specified value conforms to the syntax requirements of a value binding expression. Such expressions ` * may be used on most component tag attributes to signal a desire for deferred evaluation of the attribute or property value to be set on the underlyingUIComponent.- Parameters:
value- The value to evaluate- Throws:
java.lang.NullPointerException- ifvalueisnull
-
release
public void release()
Deprecated.Release any resources allocated during the execution of this tag handler.
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classUIComponentClassicTagBase
-
setProperties
protected void setProperties(UIComponent component)
Deprecated.Description copied from class:UIComponentClassicTagBaseOverride 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.
- Specified by:
setPropertiesin classUIComponentClassicTagBase- Parameters:
component-UIComponentwhose properties are to be overridden
-
createComponent
protected UIComponent createComponent(FacesContext context, java.lang.String newId)
Deprecated.Implement
createComponentusing Faces 1.1 EL API.- Specified by:
createComponentin classUIComponentClassicTagBase- Parameters:
context-FacesContextfor the current requestnewId- id of the component
-
getParentUIComponentTag
public static UIComponentTag getParentUIComponentTag(javax.servlet.jsp.PageContext context)
Deprecated.Locate and return the nearest enclosing
UIComponentTagif any; otherwise, returnnull.- Parameters:
context-PageContextfor the current page
-
-