2 Replies Latest reply on Mar 10, 2009 7:05 AM by Boris Ruch

    rich:datascroller paging doesn't work when page refresh

    Boris Ruch Newbie

      Hi all,

      I've a problem with datascroller for my datatable. Everything works fine, but after refreshing page(F5) the paginator for datatable doesn't work anymore.

      I'm using richfaces 3.3.0, with IE7, FF3

      Any idea, what I'm doing wrong?
      Many thanks!

      xhtml:

      
       <rich:datascroller id="dsPaymentTable" renderIfSinglePage="false" for="paymentTable" maxPages="20"/>
       <rich:dataTable id="paymentTable"
       rows="16"
       value="#{paymentBean.paymentList}" var="rowLevelBean"
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0" border="0" style="width:100%;"
       binding="#{paymentController.paymentDataTable}">
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{mbCodes.details}" />
       </f:facet>
       <a4j:commandButton id="detailButton"
       image="./images/symbols/loupe.gif"
       actionListener="#{paymentController.selectPayment}"
       reRender="detailTable"
       ajaxSingle="true" >
       <rich:componentControl for="paymentDetailPopup" attachTo="detailButton"
       operation="show" event="onclick" />
       </a4j:commandButton>
       </rich:column>
      ............
      ............


      faces-config.xml
      ..........
      <managed-bean>
       <display-name>paymentController</display-name>
       <managed-bean-name>paymentController</managed-bean-name>
       <managed-bean-class>
       ch.treibauf.matchbox.frontend.controller.PaymentController
       </managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       <managed-property>
       <property-name>loginBean</property-name>
       <value>#{loginBean}</value>
       </managed-property>
       <managed-property>
       <property-name>rectifyBean</property-name>
       <value>#{rectifyBean}</value>
       </managed-property>
       <managed-property>
       <property-name>paymentBean</property-name>
       <value>#{paymentBean}</value>
       </managed-property>
       <managed-property>
       <property-name>messageHelper</property-name>
       <value>#{messageHelper}</value>
       </managed-property>
       </managed-bean>
      <managed-bean>
       <display-name>PaymentBean</display-name>
       <managed-bean-name>paymentBean</managed-bean-name>
       <managed-bean-class>
       ch.treibauf.matchbox.frontend.beans.PaymentBean
       </managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       <managed-property>
       <property-name>loginBean</property-name>
       <value>#{loginBean}</value>
       </managed-property>
       </managed-bean>
      .....