Hi all....
How to configure primefaces to not use default theme?
My app use jquery themeroller..
I would like my application to manage themes, is that possible?
Primefaces no themes
In GuestPreferences.java you have a private field called theme; you set it's value to what ever theme you want:Coelho wrote:Hi all....
How to configure primefaces to not use default theme?
My app use jquery themeroller..
I would like my application to manage themes, is that possible?
Code: Select all
private String theme = "dark-hive"; //default
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>#{themeSwitcherBean.theme}</param-value>
</context-param>
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
You can use:
to disable the default theme and add your css in the h:head tag:
The first facet is required because the theme should be rendered BEFORE PrimeFaces structural css.
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>none</param-value>
</context-param>
Code: Select all
<h:head>
<f:facet name="first">
<link href="#{request.contextPath}/css/jquery.theme.css" rel="stylesheet" type="text/css" />
</f:facet>
</h:head>
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Information
-
Who is online
Users browsing this forum: No registered users and 32 guests