0 Replies Latest reply on Jan 12, 2008 6:11 AM by Stefan Vonolfen

    DataTable is updated upon every AJAX request

    Stefan Vonolfen Newbie

      Hi,
      I'm currently developing a web-application using rich faces. It is solely AJAX-based.

      Unfortunately in the current version of RichFaces (3.1.3) the DataTables on my page are updated upon every AJAX request.

      I'm using Tomcat 6.0 with the Sun JSF 1.2 reference implementation.

      For example:

      <a4j:outputPanel id="firstSection">
      ...
      </a4j:outputPanel>
      
      <a4j:outputPanel id="secondSection">
       <rich:dataTable value="#{peopleSearchModel.found}"
       var="person"
       border="3" bgcolor="#C6BFF7" id="foundResult" rows="5">
      
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="Found" />
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column>
       <a4j:commandLink value="#{person}" reRender="profile">
       <a4j:actionparam name="person" value="#{person.id}"
       assignTo="#{profileBean.personId}" />
       </a4j:commandLink>
       </rich:column>
      </rich:dataTable>
      </a4j:outputPanel>
      
      <a4j:form>
       <h:panelGrid columns="3">
       <a4j:commandButton value="Refresh" reRender="firstSection" />
       </h:panelGrid>
       </a4j:form>
      


      in this example the DataTable is also updated (i have included a trace message in peopleSearchModel.getFound()).

      what can be done to only update the contents that need to be refreshed?