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

    DataTable is updated upon every AJAX request

    Stefan Vonolfen Newbie

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

      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?