如何配置Primefaces Aristo主题到Twitter Bootstrap主题

Ran*_*ith 1 primefaces jsf-2 twitter-bootstrap

嗨,我是这种技术的新手.我从这里下载Primefaces.该primefaces.jar只与安装aristo theme.但我需要bootstrap在我的网站中应用主题.我下载twitter bootstarp css.如何将此主题配置为我的JSF primefaces.

Öme*_*alı 6

你不能.然而,PrimeFaces已经有一个名为Twitter Bootstrap的主题.他们还解释了为什么bootstrap文件不应该混合到该链接中的PF中.如果要将该主题应用于项目,请下载主题jar并配置web.xml:

<context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>bootstrap</param-value>
</context-param>
Run Code Online (Sandbox Code Playgroud)

或者,看一下让用户选择主题的展示示例:showcase示例