title: reRender rich:tabPanel without losing data
body: <p>Using JSF 1.2 and Richfaces 3.3, I have this form:</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;rich:tabPanel switchType="client" id="tabPnl"&gt;
          &lt;rich:tab label="MAIN_TAB"&gt;
              &lt;h:outputText value="#{msg.date}"/&gt;
              &lt;rich:calendar value="#{MyBean.date}"&gt;
                  &lt;f:validator validatorId="CalendarValidator" /&gt;
              &lt;/rich:calendar&gt;
              &lt;h:message for="DataInici" errorClass="error" /&gt;
  
              &lt;h:outputText value="#{msg.selector}"/&gt;
              &lt;h:selectOneMenu id="select_val" value="#{MyBean.selectedItem}"&gt;
                  &lt;f:selectItem itemLabel="#{msg.select_value}" itemValue="-1" /&gt;
                  &lt;f:selectItems value="#{MyBean.listOfItems}" /&gt;
                  &lt;f:validator validatorId="NumSelValidator" /&gt;
                  &lt;a4j:support event="onchange" reRender="tabPnl" ajaxSingle="true" /&gt;
              &lt;/h:selectOneMenu&gt;
              &lt;h:message for="select_val" errorClass="error" /&gt;
          &lt;/rich:tab&gt;
  
          &lt;rich:tab label="SUBTAB1" id="subtab1" rendered="#{MyBean.selectedItem == 1}"&gt;
              // form components such as inputText and/or SelectOneMenu.
          &lt;/rich:tab&gt;
  
          &lt;rich:tab label="SUBTAB2" id="subtab2" rendered="#{MyBean.selectedItem == 2}"&gt;
              // Other form components such as inputText and/or SelectOneMenu.
          &lt;/rich:tab&gt;
      &lt;/rich:tabPanel&gt;
  
      &lt;h:commandButton value="#{msg.insert}" action="#{MyBean.insertData}"&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>At the begining, SUBTAB1 and SUBTAB2 are not rendered as the default value for <code>MyBean.selectedItem</code> is -1.</p>
  
  <p>Firstly, the user picks a date in the <code>&lt;rich:calendar&gt;</code> component and, after that, it selects a value in the <code>&lt;h:selectOneMenu&gt;</code>. After that, the desired behaviour (what I want to achieve) is reRender the tabPanel without losing the data already introduced. Consequently, I expect the tabs <code>SUBTAB1</code> or <code>SUBTAB2</code> become rendered depending on what the value chosen in the <code>&lt;h:selectOneMenu&gt;</code>.</p>
  
  <p><strong>What I get</strong>: The tabPanel is reRendered, the appropiate SUBTAB is rendered but the data introduced in the first tab is lost.</p>
  
  <p>How can I render these tabs without losing the data already introduced? I've tried to reRender the specific tabs, but it dosen't make them become rendered (I suppose it only affects to their content).</p>
  
  <p>Thank you in advance.</p>
  
  <p>Note: All beans involved are Session scoped.</p>