title: What is the most efficient way to render a dynamic menu
body: <p>What is the most efficient way to make a dynamic menu, in my database I have different user roles and each role has different permissions to access pages, what would be the best way to create a menu that is generated every time you access. What would be the best way to avoid slow loading of the page?</p>
  
  <p>I'm using the technologies: Primefaces, JSF, java..</p>