title: PrimeFaces tabview: tabs are not selected properly
body: <p>I tried to implement the solution described <a href="https://stackoverflow.com/questions/20350475/jsf-navigate-one-tab-to-another-tab-in-primefaces">here</a> but it doesn't work.These are the steps to reproduce the problem:</p>
  
  <ul>
  <li>Program shows first tab selected</li>
  <li>User clicks on the second tab</li>
  <li><p>Javascript code selects first tab with </p>
  
  <pre><code>tabViewVar.select(0)
  </code></pre></li>
  </ul>
  
  <p>where tabViewVar is defined in</p>
  
  <pre><code> &lt;p:tabView id="tab1" widgetVar="tabViewVar"&gt;
  </code></pre>
  
  <p>The result is that the first tab is selected, however the objects of the second tab are still shown (not hidden).</p>
  
  <p>An ideas?</p>