title: JSF - Role based pages display
body: <p>I am starting a web app project using JSF 2.0 and PrimeFaces. One of the requirements would be to display different page content based on the user role. E.g. only admins should see the menu item - User administration. </p>
  
  <p>Security-wise I will go for Spring security. </p>
  
  <p>How could this be achieved in an elegant way? Should I make a xhtml template for everyone and then create different pages for each role with the role-specific UI items?</p>
  
  <p>Thank you</p>