Class UINamingContainer

All Implemented Interfaces:
NamingContainer, PartialStateHolder, StateHolder, TransientStateHolder, UniqueIdVendor, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener

@JSFComponent(name="f:subview") @JSFJspProperty(name="id", required=true) public class UINamingContainer extends UIComponentBase implements NamingContainer, UniqueIdVendor
Base class for components that provide a new "namespace" for the ids of their child components.

See the javadocs for interface NamingContainer for further details.

  • Field Details

  • Constructor Details

    • UINamingContainer

      public UINamingContainer()
      Construct an instance of the UINamingContainer.
  • Method Details

    • getFamily

      public String getFamily()
      Specified by:
      getFamily in class UIComponent
    • createUniqueId

      public String createUniqueId(FacesContext context, String seed)
      Specified by:
      createUniqueId in interface UniqueIdVendor
      Since:
      2.0
    • getSeparatorChar

      public static char getSeparatorChar(FacesContext context)
      Parameters:
      context -
      Returns:
      Since:
      2.0
    • isRendered

      @JSFProperty(deferredValueType="java.lang.Boolean") public boolean isRendered()
      Description copied from class: UIComponentBase
      A boolean value that indicates whether this component should be rendered. Default value: true.
      Overrides:
      isRendered in class UIComponentBase
    • visitTree

      public boolean visitTree(VisitContext context, VisitCallback callback)
      Description copied from class: UIComponent
      The visit tree method, visit tree walks over a subtree and processes the callback object to perform some operation on the subtree

      there are some details in the implementation which according to the spec have to be in place: a) before calling the callback and traversing into the subtree pushComponentToEL has to be called b) after the processing popComponentFromEL has to be performed to remove the component from the el

      The tree traversal optimizations are located in the visit context and can be replaced via the VisitContextFactory in the faces-config factory section

      Overrides:
      visitTree in class UIComponentBase
      Parameters:
      context - the visit context which handles the processing details
      callback - the callback to be performed
      Returns:
      false if the processing is not done true if we can shortcut the visiting because we are done with everything