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