How to configure Primefaces Aristo theme to Twitter Bootstrap theme

浪尽此生 提交于 2020-01-14 03:42:07

问题


Hi I am newbie in this techniques. I download the Primefaces from here. The primefaces.jar have only setup with the aristo theme. but I need to apply the bootstrap theme in my site. I download twitter bootstarp css. How to configure this theme into my JSF primefaces.


回答1:


You can not. However PrimeFaces already has a theme named as Twitter Bootstrap. Also they've explained why bootstrap files shouldn't be mixed into PF in that link. If you want to apply that theme to your project, download theme jar and configure your web.xml:

<context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>bootstrap</param-value>
</context-param>

Or, see that showcase example to let user to select a theme: showcase example



来源:https://stackoverflow.com/questions/19873351/how-to-configure-primefaces-aristo-theme-to-twitter-bootstrap-theme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!