9

Is there any way how to disable all skins RichFaces apply? They ruin my layout and override fonts, links,...

user219882
  • 15,274
  • 23
  • 93
  • 138

2 Answers2

14

In RichFaces 4.1 you can disable skinning by adding the following to your web.xml

<context-param>
    <param-name>org.richfaces.enableControlSkinning</param-name>
    <param-value>false</param-value>
</context-param>

(I found this and other parameters at http://docs.jboss.org/richfaces/latest_4_1_X/javadoc/richfaces-core-impl/org/richfaces/application/CoreConfiguration.Items.html)

Cristan
  • 12,083
  • 7
  • 65
  • 69
  • Well I missread your post. I'd suggest remove the sentence about enableControlSkinningClasses, it mislead into thinking you refer enableControlSkinning. I'll delete my post because it is missleading as well. I only wanted to say that your answer is the only one working. Chaning a skin (like suggested somewhere else) to PLAIN doesn't resolve all problems. But your solution seems to work fine. – Toskan Jan 16 '12 at 16:08
8

You can redefine each CSS style, but it'll be boring... Have a look at reset css, this can help you to redefine the CSS.

or, you can try to remove style:

<context-param>
    <param-name>org.richfaces.CONTROL_SKINNING</param-name>
    <param-value>disable</param-value>
</context-param>

<context-param>
    <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
    <param-value>disable</param-value>
</context-param>

or try to use the plain style

<context-param>
  <param-name>org.richfaces.skin</param-name>
  <param-value>plain</param-value>
</context-param>
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
Jean-Charles
  • 1,690
  • 17
  • 28
  • i suggest looking at the solution of cristan, basically skin 'plain' will not erase all skins, but enableControlSkinning seems to erase all skins – Toskan Jan 10 '12 at 18:11