Can I change PrimeFaces theme on the fly?
1 answer
The primary interfaces already implement the jQuery UI ThemeRoller . In your web.xml, you can define the context-param primefaces.THEME
with a parm value indicating the scope support with a session-bound bean.
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>#{FooBar.theme}</param-value>
</context-param>
+2
source to share