title: PrimeFaces tabmenu not changing index
body: <p>I am using <code>p:tabMenu</code> component. I have 4 menuitems, each one redirects to a different jsf page but the problem is that the page is returned without changing the <code>activeindex</code> and <code>activeindex</code> remains same with the initial value which is 0.</p>
  
  <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"&gt;
  &lt;p:tabMenu activeIndex="0"&gt;
      &lt;p:menuitem value="Home" url="Menu.jsf" icon="ui-icon-star"/&gt;  
      &lt;p:menuitem value="Fabricants" url="/pagess/pagesFabricant/Fabricant.jsf" icon="ui-icon-wrench" /&gt;  
      &lt;p:menuitem value="Composants" url="/pagess/pagesComposant/Composant.jsf" icon="ui-icon-search"/&gt;  
      &lt;p:menuitem value="Dossier d'equivalence" url="DEQ.jsf" icon="ui-icon-document"/&gt;  
  &lt;/p:tabMenu&gt; 
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>How can I solve this problem knowing that should change automatically ?</p>