title: How to use ui:insert in Primefaces p:tabMenu
body: <p>I have a bro problem which I don't know how to solve. I have this Primefaces <code>p:tabMenu</code> which is used to call tabs with lazy loading.</p>
  
  <pre><code>&lt;p:tabMenu id="tabs" activeIndex="0" &gt; 
      &lt;p:menuitem value="tab1" url="/tab1.jsf" /&gt; 
      &lt;p:menuitem value="tab2" url="/tab2.jsf" /&gt; 
  
  &lt;/p:tabMenu&gt;
  </code></pre>
  
  <p>I want to use the JSF tag <code>ui:insert</code> in order to call the tab's code. How I can combine the <code>ui:insert</code> tag into the above code?</p>