title: JSF and PrimeFaces custom component with other components inside
body: <p><strong>Description:</strong></p>
  
  <p>I am creating an <strong>e-shop</strong> in JSF. On the right side I want to have the all categories of my shop.
  I use recursive method to go through all categories (category can have parent category).</p>
  
  <p>So the way I have choosen to do it is creating my own component.
  <em>Is this thinking correct?</em>
  How to do it this way or maybe I should try something else? </p>
  
  <p>My attempt of solving this problem:</p>
  
  <ul>
  <li>Create <strong>custom component</strong> which <code>extends UIComponentBase</code> (maybe I should extends
  something else).</li>
  <li>Then create another components (<strong>CommandButtons</strong>) inside of this component ,
  which will be added to host the component. </li>
  </ul>
  
  <p>Another issue is how can I launch <code>actionListener</code> of my button?
  Beacause they are not automatically launched?
  Has anybody created these kinds of components?</p>