Save This Page
Home » Mojarra-2.0.1 » javax » faces » webapp » [javadoc | source]
javax.faces.webapp
abstract public class: UIComponentELTag [javadoc | source]
java.lang.Object
   javax.faces.webapp.UIComponentTagBase
      javax.faces.webapp.UIComponentClassicTagBase
         javax.faces.webapp.UIComponentELTag

All Implemented Interfaces:
    Tag, javax.servlet.jsp.tagext.JspIdConsumer, BodyTag, JspTag

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 javax.faces.webapp.UIComponentClassicTagBase:
UNIQUE_ID_PREFIX,  bodyContent,  pageContext
Fields inherited from javax.faces.webapp.UIComponentTagBase:
log
Method from javax.faces.webapp.UIComponentELTag Summary:
createComponent,   getELContext,   hasBinding,   release,   setBinding,   setProperties,   setRendered
Methods from javax.faces.webapp.UIComponentClassicTagBase:
addChild,   addChildToComponentAndTag,   addFacet,   addVerbatimAfterComponent,   addVerbatimBeforeComponent,   createComponent,   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,   hasBinding,   release,   setBodyContent,   setId,   setJspId,   setPageContext,   setParent,   setProperties,   setupResponseWriter
Methods from javax.faces.webapp.UIComponentTagBase:
addChild,   addFacet,   getComponentInstance,   getComponentType,   getCreated,   getELContext,   getFacesContext,   getIndexOfNextChildTag,   getRendererType,   setId
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.faces.webapp.UIComponentELTag Detail:
 protected UIComponent createComponent(FacesContext context,
    String newId) throws JspException 
 protected ELContext getELContext() 

    Return the ELContext for the FacesContext for this request.

    This is a convenience for getFacesContext().getELContext().

 protected boolean hasBinding() 
 public  void release() 

    Release any resources allocated during the execution of this tag handler.

 public  void setBinding(ValueExpression binding) throws JspException 

    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. This method must be called ONLY if the specified UIComponent was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the UIComponent is 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 properties foo and bar would 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 the rendered property is specified for this tag handler instance.
    • rendererType - Set if the getRendererType() method returns a non-null value.
 public  void setRendered(ValueExpression rendered) 

    Set an override for the rendered attribute.