-
1. Re: Create new skin
shimonl Jan 18, 2012 3:07 AM (in response to shimonl)Can any one answer? Maybe it is very simple but didn't find any explanation in documentation
-
2. Re: Create new skin
lfryc Jan 20, 2012 10:54 AM (in response to shimonl)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 :-)
-
3. Re: Create new skin
shimonl Jan 22, 2012 5:23 AM (in response to lfryc)Thanks Lukas,
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.
-
4. Re: Create new skin
lfryc Jan 23, 2012 6:33 AM (in response to shimonl)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 [1]).
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 [2]).
If I can be of any help, just reach me on #richfaces at irc.freenode.net.