Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RichFaces 4 - how to disable skins

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

like image 563
user219882 Avatar asked Sep 15 '11 10:09

user219882


2 Answers

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)

like image 153
Cristan Avatar answered Sep 22 '22 08:09

Cristan


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>
like image 38
Jean-Charles Avatar answered Sep 24 '22 08:09

Jean-Charles