We need to use multiple primefaces JSF themes in a single web application, we have several modules in the application each having their own few screens, and we want each module to have different primefaces theme,
can anyone please let us know how that can be achieved.
in web.xml we have specified :
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>start</param-value>
</context-param>
thanks
Per page you can get it. in web.xml, you can write:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>#{sessionBean.userTheme}</param-value>
</context-param>
and set userTheme in backing bean each time page changed.
Otherwise, you may extend primefaces components. Then specify specific themes per component.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With