3 Replies Latest reply on Jul 23, 2008 10:36 AM by Ilya Shaikovsky

    datascroller does not refersh the first time

    hemant mahidhara Newbie

      I have a rich:datascroller component attached to a rich:dataTable. I display different sets of data when user clicks on various a4j:commandLinks. The problem is that the data in the table changes but the datascroller does not refresh. If I click on the same link a 2nd time (this reloads the data in the datatable) the datascroller refreshes correctly.

      Also this problem happens only if I place the datascroller above the datatable. If I place the datascroller after the table then it refershes correctly on the first click too.

      here is my code:

      <rich:datascroller for="listDataTable" id="dataScroller" />
      <rich:dataTable width="100%" id="listDataTable" rows="10" columnClasses="col"
       value="#{treeBean.monitors}" var="monitor">
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <h:outputText styleClass="headerText" value="" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="Title" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="Author" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="Date" />
       </h:column>
       </rich:columnGroup>
       </f:facet>
      
       <h:column>
       <h:graphicImage value="#{monitor.typeImage}"/>
       </h:column>
       <h:column>
       <a4j:commandLink reRender="versionPanel" onclick="#{monitor.onclick}">
       <h:outputText id="${id}label" value="#{monitor.label}"/>
       <h:outputText id="${id}uniqueID" value="#{monitor.uniqueID}" style="display:none" />
       <h:outputText id="${id}type" value="#{monitor.type}" style="display:none" />
       </a4j:commandLink>
       </h:column>
       <h:column>
       <h:outputText value="#{monitor.author}" />
       </h:column>
       <h:column>
       <h:outputText value="#{monitor.sentDateStr}" />
       </h:column>
       </rich:dataTable>