Package org.primefaces.util
Class FacetUtils
java.lang.Object
org.primefaces.util.FacetUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidinvokeOnEditableValueHolder(javax.faces.context.FacesContext context, javax.faces.component.UIComponent facet, javax.faces.component.ContextCallback callback) static booleanshouldRenderFacet(javax.faces.component.UIComponent facet) Checks if the facet and one of the first level children is rendered.static booleanshouldRenderFacet(javax.faces.component.UIComponent facet, boolean alwaysRender) Checks if the facet and one of the first level children is rendered.
-
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 checkalwaysRender- 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)
-