javax.faces.webapp

Class UIComponentELTag

    • Constructor Detail

      • UIComponentELTag

        public UIComponentELTag()
    • Method Detail

      • setBinding

        public void setBinding(ValueExpression binding)
                        throws JspException

        Set the value expression for our component.

        Parameters:
        binding - The new value expression
        Throws:
        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 EL property as well as subclasses that expose it as an EL API property.

        Specified by:
        hasBinding in class UIComponentClassicTagBase
      • setRendered

        public void setRendered(ValueExpression rendered)

        Set an override for the rendered attribute.

        Parameters:
        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) {
           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.
        Specified by:
        setProperties in class UIComponentClassicTagBase
        Parameters:
        component - UIComponent whose properties are to be overridden

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/webapp/UIComponentELTag.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com, UIComponentELTag (Java(TM) EE 7 Specification APIs)

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.