public static void addClass2FacetComponent ( UIComponent f , String cname , String aclass ) { // If the facet contains only one component, getChildCount()=0 and the // Facet is the UIComponent if ( f . getClass ( ) . getName ( ) . endsWith ( cname ) ) { addClass2Component ( f , aclass ) ; } else { if ( f . getChildCount ( ) > 0 ) { for ( UIComponent c : f . getChildren ( ) ) { if ( c . getClass ( ) . getName ( ) . endsWith ( cname ) ) { addClass2Component ( c , aclass ) ; } } } } }
Adds a CSS class to a component within a facet .