Twitter Bootstrap with Primefaces (JSF)

后端 未结 3 956
粉色の甜心
粉色の甜心 2020-12-24 08:35

I\'m trying to use Primefaces 3.2 (perhaps it\'s related to JSF in general) with Twitter Bootstrap 2.0.2 (http://twitter.github.com/bootstrap).

I\'ve added to the st

3条回答
  •  粉色の甜心
    2020-12-24 09:16

    there is an easier way to add this theme.

    If you are using a maven project bases do this:

    Add dependency

          
            org.primefaces.themes  
            all-themes  
            1.0.9  
        
    

    Or add a specific theme dependency

    Add this in your web.xml

        
          primefaces.THEME
          bootstrap
        
    

    If you are not using Maven, download the jar manually and add It to your classpath:

    http://repository.primefaces.org/org/primefaces/themes/

    References:

    • http://www.primefaces.org/showcase-labs/ui/home.jsf?theme=bootstrap
    • http://blog.primefaces.org/?p=2139
    • http://primefaces.org/themes.html

提交回复
热议问题