Can any one answer? Maybe it is very simple but didn't find any explanation in documentation
Hi Shimon, try to place ECSS file under YOUR_WAR/resources/myLibrary/my.ecss,
you can reference that file using
<h:outputStylesheet library="myLibrary" name="my.ecss" />
Note that myLibrary is optional here. Just for completeness :-)
This one worked, but it is not exatcly what I am looking for.
I want that my skin will behave exactly as out of the box skins. ie. No special definition in jsf files.
For instance I want to decide on skin based on parameter or the option in web.xml file.
Shimon, with customizing skin with .skin.properties file, you are controlling pre-defined styles of RichFaces components.
But, if you want to define another style properties, it means define completely other styles,
you need to play with style of components (define own CSS/ECSS and act according to skinning and theming guide ).
At last, you can force RichFaces components to load another CSS/ECSS then the ones which they have defined,
by rewriting the impl (it would require to copy&paste current component stylesheet + modify that + save into project structure + point the component to modified stylesheet using resource mapping ).
If I can be of any help, just reach me on #richfaces at irc.freenode.net.