This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF2/Richfaces4 not loading contents of .ecss files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF2/Richfaces4 not loading contents of .ecss files" Watch "JSF2/Richfaces4 not loading contents of .ecss files" New topic

JSF2/Richfaces4 not loading contents of .ecss files

Tommy Gunner

Joined: Jun 15, 2011
Posts: 3
I'm upgrading to Richfaces 4 and the Sun implementation of JSF2 (2.0.6) from Richfaces 3.3 and JSF 1.2.

My css files are under 'WebContent/resources/css'.

When pages get rendered, all .css files get loaded correctly.

For some reason the content of my .ecss files do not get loaded, any ideas why this is?

Do I need some extra settings in my web.xml?


Looking at firebug, the styles in broken.ecss are not been found.

One thing I did notice is the path to the files. My css files have the JSF2 resources path while ecss files have the Richfaces resources path. Could this be the issue (Seen as I have all my files under the default JSF2 resources location)?

Also, the following is shown in logs:


Ok, the 302 was due to a redirect for errors I had in my web.xml. Now I can see the true cause of the problem:

Do I need to include some sort of CSSOMParse jar in my app also?

Tommy Gunner

Joined: Jun 15, 2011
Posts: 3
Ok.....I download and added the cssParser-0.9.5.jar to my webApp and it fixed the problem!

I origionally had the folowing jar which I thought was all that was neeed for the Richfaces4 upgrade: sac-

Theres seems to be no mention of adding the cssParser jar to projects when upgrading to Richfaces 4, is there a reason for this or am I missing something here?

I'm getting more frustrated by the day with Richfaces limited examples, documentation and more importantly a large enough community to answer questions like these

I agree. Here's the link:
subject: JSF2/Richfaces4 not loading contents of .ecss files
It's not a secret anymore!