This content has been marked as final.
Show 2 replies
-
2. Re: dynamic skinning
sergeysmirnov Feb 13, 2009 8:18 PM (in response to ajanz)web.xml:
<context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>#{skinBean.skin}</param-value> </context-param>
faces-config.xml:<managed-bean> <managed-bean-name>skinBean</managed-bean-name> <managed-bean-class>com.yourpath.SkinBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property> <property-name>skin</property-name> <property-class>java.lang.String</property-class> <value>blueSky</value> </managed-property>
So, when the skin property of this skinBean is changed, the skin for the page is changed. Be sure, the page is reloaded regularly. You cannot change the skin for part of the page (I.e. during the Ajax call)