10 Replies Latest reply on May 24, 2007 1:06 AM by ebu

    rich:dataScroller not working

    icai

      Hi
      I am trying to use rich:dataScroller. It's not working for me.

      This is how I used it:

      <rich:datascroller for="personTable" page="5" />
      <rich:datatable
       id = "personTable"
       rows = "5"
       var = "personDetail"
       value ="#{personView.personArr}">
      
      ....
      </rich:datatable>


      I can see the scroller coming on the top, but when I hit it to go to next page, nothing happens. But all the sections are rerendered.

      Are there any dependencies to be taken care of while using it??
      Any help will be very useful.

        • 1. Re: rich:dataScroller not working

          Take a look at Richfaces 3.0.1 and Ajax4jsf 1.1.1 snapshots

          • 2. Re: rich:dataScroller not working
            icai

            I am using ajax4jsf-1.1.1-SNAPSHOT.jar and richfaces-3.0.1-SNAPSHOT.jar.

            • 3. Re: rich:dataScroller not working

              What the JSF version?

              • 4. Re: rich:dataScroller not working
                icai

                I am using jsf version 1.1 .

                • 5. Re: rich:dataScroller not working

                  Could you try to put datascroller after the dataTable

                  • 6. Re: rich:dataScroller not working
                    icai

                    Still the same fate. It doesnt work.

                    • 7. Re: rich:dataScroller not working
                      refon

                      I had a similar problem in the context of seam-gen generated entities using the class: org.jboss.seam.framework.EntityQuery to back the dataTable.

                      In the generated EntityQuery subclass "MyList", the generated scrolling mechanism defined:

                       @Override
                       public Integer getMaxResults() {
                       return 25;
                       }
                      


                      I had to remove the getMaxResults() method from MyList while using the rich:dataScroller.
                      Only doing my first steps with richFaces / Seam, hope this is not off topic.


                      • 8. Re: rich:dataScroller not working
                        jondeveloper

                         

                        "icai" wrote:
                        Hi
                        I am trying to use rich:dataScroller. It's not working for me.

                        This is how I used it:

                        <rich:datascroller for="personTable" page="5" />
                        <rich:datatable
                         id = "personTable"
                         rows = "5"
                         var = "personDetail"
                         value ="#{personView.personArr}">
                        
                        ....
                        </rich:datatable>


                        I can see the scroller coming on the top, but when I hit it to go to next page, nothing happens. But all the sections are rerendered.

                        Are there any dependencies to be taken care of while using it??
                        Any help will be very useful.


                        experiecing the same problem when using dataScroller with dataTable, but if I used tomahawk dataTable and combined it with richfaces:dataScroller I encountered NO problem, I can scroll through the resultset.

                        • 9. Re: rich:dataScroller not working
                          archkhedkar


                          Try putting the dataScroller after dataTable.

                          I am not sure about the "page" attribute of dataScroller.
                          but Remove it and have a look at the following snippet.

                          this might help you..



                          <rich:dataTable id="carList" rows="10" value="#{scrollerList.list}" var="car" >
                          .
                          .
                          .
                          </rich:dataTable>

                          <rich:datascroller for="carList" id="List" maxPages="10" />



                          • 10. Re: rich:dataScroller not working
                            ebu

                            Hi,
                            I'm also having a problem with datascroller but of a bit different sort. It works, but when i specify value attribute on it, corresponding bean property never gets updated.
                            Is it bug or feature?

                            wbr, eugen.