twitter-bootstrap 如何将 Primefaces Aristo 主题配置为 Twitter Bootstrap 主题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19873351/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to configure Primefaces Aristo theme to Twitter Bootstrap theme
提问by Ranjith
Hi I am newbie in this techniques. I download the Primefacesfrom here. The primefaces.jarhave only setup with the aristo theme. but I need to apply the bootstraptheme in my site. I download twitter bootstarpcss. How to configure this theme into my JSF primefaces.
嗨,我是这种技术的新手。我从这里下载Primefaces。该primefaces.jar只与安装aristo theme。但我需要bootstrap在我的网站中应用该主题。我下载了twitter bootstarpcss。如何将此主题配置到我的JSF primefaces.
回答by ?mer Faruk Almal?
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 jarand configure your web.xml:
你不能。然而 PrimeFaces 已经有一个名为Twitter Bootstrap的主题。他们还解释了为什么不应在该链接中将引导程序文件混合到 PF 中。如果您想将该主题应用于您的项目,请下载主题 jar并配置您的 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
或者,查看展示示例让用户选择一个主题:展示示例

