chenge theme based on user prifile
Posted: 18 Jul 2014, 13:06
Hi al,
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:
and it works.
However i would like to store the theme in the DB. So I have an UserBean (SessionScope) with relative theme attribute and now is:
Of course when i load the application no user is logged-in. So i though the theme value default to 'aristo' but i get the following error:
can you pls tell me where i am worng?
thanks lot!
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!