It concerns the following:
- There is a base
stylesheet.cssfor the web site (by using a<link>tag). - Depending on user is logged in the skin changes through
SkinBean.setSkin("SKIN")when the user enters some parts of the web site. - If the skin changes than also the loaded style sheet should be changed in
stylesheet-alt.css.
Is there a quick and simple solution for changing the style sheet depending on used skin in RichFaces?
I will be glad if someone helps.
(This question is not about how to change the skin in RichFaces in general)
Use
<a4j:loadStyle>instead of<link>tag and userenderedattribute as below.