private void handleConfigurableResources ( FacesContext context , boolean provideJQuery , boolean provideBootstrap , List < UIComponent > resources , UIViewRoot view ) { boolean isResourceAccepted ; for ( UIComponent resource : resources ) { final String resourceLibrary = ( String ) resource . getAttributes ( ) . get ( "library" ) ; final String resourceName = ( String ) resource . getAttributes ( ) . get ( "name" ) ; isResourceAccepted = true ; if ( resourceName != null && CONFIGURABLE_LIBRARY_NAME . equals ( resourceLibrary ) ) { if ( ! provideJQuery && resourceName . equals ( "butterfaces-third-party-jquery.js" ) ) { isResourceAccepted = false ; } else if ( ! provideBootstrap && resourceName . equals ( "butterfaces-third-party-bootstrap.js" ) ) { isResourceAccepted = false ; } } if ( ! isResourceAccepted ) removeResource ( context , resource , view ) ; } }
Use normal resources