title: How do i set the active tab in Primefaces tabView?
body: <p>I have a menubar in which two items on a submenu, both calling the same page:  </p>
  
  <pre><code>&lt;p:menubar autoSubmenuDisplay="true"&gt;  
     &lt;p:submenu label="Perfil"&gt;  
         &lt;p:menuitem value="Editar" url="perfil.xhtml" /&gt;  
         &lt;p:menuitem value="Ver" url="perfil.xhtml" /&gt;  
     &lt;/p:submenu&gt;  
  &lt;/p:menubar&gt;  
  </code></pre>
  
  <p>In that page i have a tabview with two tabs:  </p>
  
  <pre><code>&lt;p:tabView dynamic="true"&gt;  
      &lt;p:tab id="ver" title="Ver perfil"&gt;  
          &lt;ui:include src="verPerfil.xhtml" /&gt;    
      &lt;/p:tab&gt;  
      &lt;p:tab id="editar" title="Editar perfil"&gt;   
      &lt;ui:include src="editarPerfil.xhtml" /&gt;  
      &lt;/p:tab&gt;  
  &lt;/p:tabView&gt;  
  </code></pre>
  
  <p>How can i set the active tab, so each menuitem activate the corresponding tab?</p>