0

Is it possible to "turn off" or "disable" the current/default Primefaces theme and have the native Windows theme be used??

If so, how is this be done?

--For instance, I was trying to find a easy way to revert to standard Windows button styles/shapes.

Thanks for any help/guidance.

s

sairn
  • 461
  • 3
  • 24
  • 58
  • What do you mean by default Windows theme? – siebz0r Dec 15 '12 at 08:35
  • @siebz0r: I believe he actually means "no CSS" and thus browser-specific look'n'feel and that the OP thinks due to ignorance that it's Windows specific. – BalusC Dec 15 '12 at 13:36

2 Answers2

3

Short answer is no.

Longer answer is that Primefaces comes with a set of themes (you can find the list at http://primefaces.org/themes.html). If you don't like any of them, you can use ThemeRoller to create your own (http://jqueryui.com/themeroller/). There is a "How-To" in the Primefaces docs. The newest (3.4) is available at http://primefaces.googlecode.com/files/primefaces_users_guide_3_4.pdf or you can get for another version at http://primefaces.org/documentation.html

grekier
  • 2,322
  • 1
  • 16
  • 23
1

You can turn off all primefaces styling by setting the following context parameter

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

In your web.xml. See also this answer by Cagatay, team lead of primefaces

Community
  • 1
  • 1
kolossus
  • 20,559
  • 3
  • 52
  • 104