public static boolean shouldRenderFacet ( UIComponent facet ) { if ( facet == null || ! facet . isRendered ( ) ) { // For any future version of JSF where the f:facet gets a rendered attribute (https://github.com/javaserverfaces/mojarra/issues/4299) // or there is only 1 child. return false ; } // Facet has no child but is rendered if ( facet . getChildren ( ) . isEmpty ( ) ) { return true ; } return shouldRenderChildren ( facet ) ; }
Checks if the facet and one of the first level child s is rendered .