3 Replies Latest reply on Sep 23, 2009 6:14 AM by The Empi

    rich:tabPanel setter called twice with switchType=client

    The Empi Newbie

      Hey there,

      In the following example I'm using the tabPanel with the switchType=client. The setter of the my corresponding class is called twice in this example. The first call brings in the new value and the second call brings back the old value. This causes the save Method to persist the old state of my object again.
      However, when I use switchType=ajax, everything works fine.
      Does anyone know the reason for this behaviour?

      In addition, the immediate attribute on the <rich:tab> tag is not the reason either.

      Thanks for your help and best regards

      <a4j:form id="form">
       <rich:tabPanel id="dv-main" name="dv-main" styleClass="no-margin" switchType="client" >
       <rich:tab id="dienststelle_tab" label="Dienststelle" immediate="true" >
       <h:inputText value="#{dst.kurzName}" />
       <!-- some more inputFields here -->
       <a4j:commandButton value="save" action="#{dstBean.save}" reRender="dv-navigator" >
       <rich:tab id="dienststelle_suchen_tab" label="Diensstelle suchen" >
       <!-- some other stuff here -->

      public void setKurzName(String pName) {
       this.kurzName = pName;