Class UIComponentELTag

    • Constructor Detail

      • UIComponentELTag

        public UIComponentELTag()
    • Method Detail

      • 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 true if this component has a non-null binding attribute. This method is necessary to allow subclasses that expose the binding property as an Faces 1.1 style Expression Language property as well as subclasses that expose it as a Jakarta Expression Language API property.

        Specified by:
        hasBinding in class UIComponentClassicTagBase
        whether or not this component has a binding attribute
      • setRendered

        public void setRendered​(ValueExpression rendered)

        Set an override for the rendered attribute.

        rendered - The new value for rendered attribute
      • 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 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) {
             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.
        Specified by:
        setProperties in class UIComponentClassicTagBase
        component - UIComponent whose properties are to be overridden