开发者

how to set skin for primefaces 1.1

开发者 https://www.devze.com 2023-02-16 17:59 出处:网络
could you please explain how 开发者_如何学运维to set the skin for primefaces 1.1 .. you can try to add

could you please explain how 开发者_如何学运维to set the skin for primefaces 1.1 ..


you can try to add

<h:head>
   <link type="text/css" rel="stylesheet"
            href="#{request.contextPath}/themes/redmond/skin.css" />
</h:head>

to your page and

<context-param>
    <param-name>primefaces.skin</param-name>
    <param-value>none</param-value>
</context-param>

to web.xml


From http://www.primefaces.org/themes.html:

Installing Themes

Applying a theme from Theme Gallery to your PrimeFaces project is very easy, you just need to download the theme jar, add it your classpath and configure PrimeFaces to use it.

1) You can either download the theme manually from this page or using maven via;

<dependency>
  <groupId>org.primefaces.themes</groupId>
  <artifactId>aristo</artifactId>
  <version>1.0.0</version>
</dependency>

2) Next step is setting primefaces.THEME parameter with the theme name, you can also use an EL expression for dynamic themes. view plaincopy to clipboardprint?

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

That's it!

I'm currently facing a problem like this, bhut have no real solution for that yet...

0

精彩评论

暂无评论...
验证码 换一张
取 消