title: How to create dynamic menu using database and JSF
body: <p>I want to create dynamic menu from Database
  it's mean i have Catagory is main menu and some catagory such as Books, CDs, Managzine . . .
  and Sub- Category is child of Category ( 2 table one is Category and table two is Sub-Category, and one - to many relationship) such as Ebooks for Books category, 007 for Cds, PC Worlds for MAgazine , Dictionary English for Books, Titanic for CDs</p>
  <p>Dynamic menu load from database and display output to JSF page follow:</p>
  <blockquote>
  <p>Books</p>
  <pre><code> Ebooks
   Dictionary
  </code></pre>
  <p>CDs</p>
  <pre><code> 007
   Titanic
  </code></pre>
  <p>Magazine</p>
  <pre><code> PC Worlds
   IT Magazine
  </code></pre>
  </blockquote>
  <p>How can i do it</p>