I'd like to use the richfaces panel as its basically the right shape and is skinnable, so I can change font, colour etc. However, as part of the default skin the horizontal bar containing the header has a gradient. My design has a flat simple colour with no gradient of any kind.

How do I stop richfaces adding a gradient?

If possible I'd like to utterly remove every mention of the gradient from the CSS to avoid bloat and additional HTTP requests for images. i.e I want to render:

background-color: black;

and nothing else at all.

I'm using plug and skin.

It seems that like this question the answer is that its probably not possible without changing richfaces. Thanks for the input.

4 Answers
4

I realize I'm a bit late in answering this, but I thought I'd throw in my solution to this problem.

I am using RichFaces Plug-n-Skin for my project, and I am able to remove all of the gradients and predefined styles by disabling the control skinning of RichFaces. It is a simple change in the web.xml of my web project.

Depending on your needs, this may be a bit of overkill, but I am overriding pretty much everything on all of my RichFaces components anyway. This allows me to specify styles all I want in my Plug-n-Skin, and doesn't load any of the unnecessary default RichFace styles/images that I don't need anyway.

I stopped using RichFaces due to this issue and similar ones. I concluded it is an educational experiment that succeeded in some markets but isn't suitable for my needs. However +1 for posting something on target.
–
Simon GibbsSep 12 '11 at 11:18

If I'm using the plain skin, how do I use my skin? The problem I have is though I'm creating a skin, there is already a whole bag of CSS I don't want. The plain skin is actually downloading a gradient with the same base and gradient color, seem they have the same issue :-(
–
Simon GibbsMar 24 '09 at 15:40

hmm if the plain skin is still to much css, you'll want to look at creating your own. I will edit my answer to include information on creating a custom skin.
–
Mark RobinsonMar 25 '09 at 0:59