问题描述
我是这项技术的新手.我从此处下载 Primefaces . primefaces.jar
仅使用aristo theme
进行设置.但是我需要在我的网站中应用bootstrap
主题.我下载了 twitter bootstarp CSS.如何将此主题配置到我的JSF primefaces
.
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
.
推荐答案
您不能.但是PrimeFaces已经有一个名为 Twitter Bootstrap 的主题.他们还解释了为什么不应在该链接中将引导文件混入PF中.如果您想将该主题应用于您的项目,请下载主题jar a>并配置您的web.xml:
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
这篇关于如何将Primefaces Aristo主题配置为Twitter Bootstrap主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!