title: rich:tabPanel has a strange Behaviour: it does not select the correct tab
body: <p>I've found a strange behaviour using rich:tabPanel in RichFaces 3.3.0.GA and Facelets 1.1.14</p>
  
  <p>The problem occurs when I try to nest a tabPanel in a rich:panel, simpleTogglePanel, or h:panelGrid. The panel is in sever mode.</p>
  
  <p>It suddenly switch to first tab. It's not that easy to reproduce:</p>
  
  <p>If I've got three tabs:</p>
  
  <ul>
  <li>click on 1 </li>
  <li>click on 2 </li>
  <li>click on 3</li>
  <li>click on 2 </li>
  <li>click on 3</li>
  <li>Sometimes (random) it goes to the first tab, instead of going to the third tab.</li>
  </ul>
  
  <p>The tabs are not generated dynamically, but they are written in xml page.</p>
  
  <p>I've got some custom tags in a taglib in another project (referenced via jar). This happens when I try to insert a rich:tabPanel between my custom tags using </p>
  
  <p>In my tags there are no forms (a4j:form o h:form)</p>
  
  <p>Any idea on how to solve this issue? I may start debugging richFaces, but it's a little hard to do, and I'm not even sure that the problem is in that (it may be in Facelets, for instance).</p>
  
  <p>Thank you very much.</p>