Class FacetUtils

java.lang.Object
org.primefaces.util.FacetUtils

public class FacetUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    invokeOnEditableValueHolder(javax.faces.context.FacesContext context, javax.faces.component.UIComponent facet, javax.faces.component.ContextCallback callback)
     
    static boolean
    shouldRenderFacet(javax.faces.component.UIComponent facet)
    Checks if the facet and one of the first level children is rendered.
    static boolean
    shouldRenderFacet(javax.faces.component.UIComponent facet, boolean alwaysRender)
    Checks if the facet and one of the first level children is rendered.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • shouldRenderFacet

      public static boolean shouldRenderFacet(javax.faces.component.UIComponent facet, boolean alwaysRender)
      Checks if the facet and one of the first level children is rendered.
      Parameters:
      facet - The Facet component to check
      alwaysRender - flag to ignore children and only check the facet itself
      Returns:
      true if the facet should be rendered, false if not
    • shouldRenderFacet

      public static boolean shouldRenderFacet(javax.faces.component.UIComponent facet)
      Checks if the facet and one of the first level children is rendered.
      Parameters:
      facet - The Facet component to check
      Returns:
      true when facet and one of the first level children is rendered.
    • invokeOnEditableValueHolder

      public static void invokeOnEditableValueHolder(javax.faces.context.FacesContext context, javax.faces.component.UIComponent facet, javax.faces.component.ContextCallback callback)