Fork me on GitHub
Attention: This component is still under progress and experimental.

b:activateLibraries Adds bootstrap css and js, jQuery and pretty print to head part to activate libraries for sites not containing any other ButterFaces component. In addition to that all butterfaces css, js and jQuery pluging will be added to head part.

If web.xml parameter org.butterfaces.useCompressedResources is set (default is true) a compressed version of all resources are added instead of each resource.

Tag attributes
                            <!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://xmlns.jcp.org/jsf/html" 
      xmlns:f="http://xmlns.jcp.org/jsf/core" 
      xmlns:b="http://butterfaces.org/components"> 
<h:head /> 
<body>
        <b:activateLibraries id="input"
                             rendered="true">
        </b:activateLibraries>
</body> 
</html>
                        
                            <?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                             http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
         version="3.0"> 
  <!-- If you want to enable compressed and minified resources -->
  <!-- (http://yui.github.io/yuicompressor/ is used) -->
  <!-- default is false -->
  <context-param>
     <param-name>org.butterfaces.useCompressedResources</param-name>
     <param-value>true</param-value>
  </context-param>
</web-app>