javax.faces.view.facelets

Class ComponentHandler

    • Method Detail

      • createComponent

        public UIComponent createComponent(FaceletContext ctx)

        Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to this tag handler my override this method to do so. A null return from this method will cause the TagHandlerDelegate for instance to create the component instead.

        Since:
        2.2
      • onComponentCreated

        public void onComponentCreated(FaceletContext ctx,
                                       UIComponent c,
                                       UIComponent parent)

        This method is guaranteed to be called after the component has been created but before it has been populated with children.

        Parameters:
        ctx - the FaceletContext for this view execution
        c - the UIComponent that has just been created.
        parent - the parent UIComponent of the component represented by this element instance.
        Since:
        2.0
      • onComponentPopulated

        public void onComponentPopulated(FaceletContext ctx,
                                         UIComponent c,
                                         UIComponent parent)

        This method is guaranteed to be called after the component has been populated with children.

        Parameters:
        ctx - the FaceletContext for this view execution
        c - the UIComponent that has just been populated with children.
        parent - the parent UIComponent of the component represented by this element instance.
        Since:
        2.0
      • isNew

        public static boolean isNew(UIComponent component)

        Determine if the passed component is not null and if it's new to the tree. This operation can be used for determining if attributes should be wired to the component.

        Parameters:
        component - the component you wish to modify
        Since:
        2.0

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/view/facelets/ComponentHandler.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, ComponentHandler (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.