0 Replies Latest reply on Nov 24, 2011 9:08 AM by mn3

    TabPanel switchType="client" with itemChangeListener

    mn3

      Hi

       

      Does the itemChangeListener on a rich:tabPanel works only with switchType="ajax" and not with switchType="client"?

      How can I rerender a tabPanel when the switchType is set to "ajax"?

       

      For example I have a rich:extendedDataTable and a rich:tabPanel:

      <rich:extendedDataTable value="#{sketchModel.errors}" var="error" selection="#{sketchModel.errorSelection}"

                                      style="height:70px; width:410px;">

                                      <a4j:ajax execute="@this" event="selectionchange"

                                          listener="#{sketchModel.selectionListener}" render="@form" />

                                      <rich:column width="400px">

                                          <h:outputText value="#{error}" />

                                      </rich:column>

      </rich:extendedDataTable>

       

      ...

       

      <rich:tabPanel switchType="ajax" id="tabPanel1"

                                  activeItem="#{sketchModel.tab1ActiveItem}" >

                                  <rich:tab header="Tab1" id="tab1">

      ...

       

      When I select a row a certain tab should be active. I set this certain tab id in the backBean (tab1ActiveItem). After that I want to rerender the tabPanel but this works only with switchType set to "client". If set to "ajax" the tabPanel is not rerendered.

       

      Any ideas?

       

      Thanks

      Mathias