3 Replies Latest reply on May 4, 2008 8:34 PM by Thai Dang Vu

    Move from tab A -> tab B, data in tab A reloaded?

    Thai Dang Vu Apprentice

      I use a rich:tabPanel having 3 rich:tab inside. The rich:tabPanel and rich:tab have the attribute switchType of `ajax'. In each rich:tab I have a rich:dataTable like this:

      <rich:dataTable id="dataTableA" var="pl" value="#{adminBackingBean.allAs}">
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column><h:outputText value="ID"/></rich:column>
       <rich:column><h:outputText value="Programming Language"/></rich:column>
       </rich:columnGroup>
       </f:facet>
       <rich:column><h:outputText value="#{pl.id}"/></rich:column>
       <rich:column><h:outputText value="#{pl.value}"/></rich:column>
      </rich:dataTable>
      Data in 3 tabs are from 3 different database tables.

      When I'm in tab A and click on tab B, in the log file, there's a sql statement which retrieves the data for tab A from the database, and of course there's a sql statement which retrieves the data for tab B. So, does the current tab have to be reloaded when we move to a new tab? Or am I doing something wrong?