0

I'm upgrading from Richfaces 3.3 to 4.

I have a number of custom css files and skins.

Richfaces 4 seems to have added a whole load of new classes to various components i.e. rf-tab, rf-tab-cnt, etc. These components have styles associated with them (They appear to be loaded in ecss file with names like panel.ecss, datascroller.ecss, etc)

They have really messed up my current UI layout :(

Is there any way to disable the loading of all these component stylessheets?

I tried applying the following but it does not work:

<context-param>
  <param-name>org.richfaces.LoadStyleStrategy</param-name>
  <param-value>NONE</param-value>
</context-param>

<context-param>
  <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
  <param-value>false</param-value>
</context-param>

Thanks

1 Answer 1

0

Use 'plain' skin. This way most CSS classes will be rendered but not defined...

4
  • That causes a problem, I need to specify a dynamic skin of my own here i.e. <param-value>#{productInfo.skin}</param-value>. putting 'plain' in there results in my custom skin not getting loaded. Sep 13, 2011 at 7:58
  • Just have getSkin() return your custom skin.
    – Max Katz
    Sep 13, 2011 at 19:22
  • I'm not following Max. Where is getSkin() defined? Is it part of some custom bean you create? Oct 13, 2011 at 10:49
  • It's defined as a bean getter, which returns the current skin.
    – Max Katz
    Apr 24, 2012 at 18:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.