3 Replies Latest reply on Oct 20, 2011 10:23 AM by Artur Mioduszewski

    rich:dataTable not refreshed for long backend call

    Amit Nair Newbie

      Hi Team,



      I am facing problem in getting rich:dataTable refreshed on click of rich:commandButton. We are using  richfaces 4.0.0.Final, JSF 2.0.2 and myfaces-orchestra-core20-1.4. Please find the code snippet


      <a4j:commandButton id="searchButtton" valueSearch" styleClass="searchButton"  

      actionListener="#{searchBean.performSearch}" render="searchBySearchProfileGrid" >

      </a4j:commandButton >


      <rich:dataTable id="searchBySearchProfileGrid" value="#{ searchBean.searchProfileList}" var="DATA_ROW">


             <rich:column sortBy="#{DATA_ROW.name}" >

      <f:facet name="header">

      <h:outputText value="Name" />


      <h:outputText value="#{DATA_ROW.seqNo}"/>




      ……. Similarly there are many columns to show the searched result.





      We are running the application on IE. On click of the button, a call is made to the backend which takes around a minute to return the results. The dataTable doesn’t get refreshed with the results. The data comes if the page is then refreshed. To reduce the server processing time, instead of making a backend call, I sent a dummy list from the backing bean. The datatable gets refreshed then, this implies that the code for refresh is not wrong. This occurs only in IE (checked on 7, 8 & 9) This problem is not coming in firefox.



      Really appreciate any help….

      Thanks in advance...