5 Replies Latest reply on Jun 10, 2007 11:34 PM by Yann Laviolette

    rich:datascroller doesn't work

    Yann Laviolette Newbie

      Hi!

      I'am trying to use datascroller but it doesn't work properly. I have a list (moduleList) that contains 4 records. For testing, I use 2 rows for the datatable. Datascroller see that it need 2 pages so it put page 1 and page 2. The problem is that when I click on the 2 or on next there's no changes. I see the query on the database but the GUI isn't refreshed with the new data. Where it can come from?

      I use JSF 1.2, ajax4jsf1.1.1 and richface3.0.1.

      Here's my code.

      Thanks!



      <f:view>
      <f:loadBundle basename="ca.stratageme.housesynergy.Message" "lang" />
      
      <h:form>
       <rich:dataTable width="483" id="moduleListw" rows="2" value="#{ModuleListBean.moduleList}"
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#FFFFFF'"
       cellpadding="0" cellspacing="0" var="module" >
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <h:outputText styleClass="headerText" value="#{lang.form_admin_module_nommodule}" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="#{lang.form_admin_module_description}" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText"
       value="#{lang.form_admin_module_url}" />
       </h:column>
      
       </rich:columnGroup>
      </f:facet>
      
      <h:column>
      <h:outputText value="#{module.nom}" />
      </h:column>
      
      <h:column>
      <h:outputText value="#{module.description}" />
      </h:column>
      
      <h:column>
      <h:outputText value="#{module.url}" />
      </h:column>
      
      </rich:dataTable>
      <rich:datascroller for="moduleListw" maxPages="20" id="List" />
      </h:form>
      </f:view>