title: PrimeFaces: how to make the theme dynamic
body: <p>I need to make the theme dynamic by the different users, currently, I find the guide in <a href="http://www.developer.am/primefaces/?page=Applying%20a%20Theme" rel="nofollow">http://www.developer.am/primefaces/?page=Applying%20a%20Theme</a></p>
  
  <p>It says: 
  In case you’d like to make the theme dynamic, define an EL expression as the param value.</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;primefaces.THEME&lt;/param-name&gt;
      &lt;param-value&gt;#{loggedInUser.preferences.theme}&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>In my understanding, the theme will be changed by the different users, right? Even I change the theme in preferences for the user, I have no need to restart the middleware, the theme will be changed at once, right?</p>
  
  <p>Please guide me, thanks in advance.</p>