i am following the on-line advices but i am not get along.
I want to change the theme based on the user logged in.
As try i added the theme glass-x.jar and changed the web.xml like this:
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>glass-x</param-value>
</context-param>
However i would like to store the theme in the DB. So I have an UserBean (SessionScope) with relative theme attribute and now is:
Code: Select all
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>#{userBean.theme}</param-value>
</context-param>
Code: Select all
Caused by: javax.faces.FacesException: Error loading theme, cannot find "theme.css" resource of "primefaces-" library
thanks lot!