2 Replies Latest reply on May 4, 2011 8:24 AM by elisei

    rich:dataScroller is rendered but does not work

    elisei Newbie

      Hi all,

       

      I have a small problem with the new rich:dataScroller in Richfaces 4.0.0.Final. I want to create a simple rich:dataTable with a scroller. I tried the example out, and the scroller is beeing rendered, but does not work. If I click on a new page (e.g. page 2) nothing happens.

       

      Another strange thing is, that when I set renderIfSinglePage="false" the scroller is not rendered at all, even if there are many pages to scroll.

       

      I attached the simple code of my test.

       

      Also, I tried the exact cars example from the richfaces showcase with exactly the same classes. Same problem.

       

      What am I doing wrong?

       

      Many thanks in advance,

       

      Greets,

      Elisei

        • 1. Re: rich:dataScroller is rendered but does not work
          Pavol Pitonak Master

          Hi Elisei,

           

          I tried your sampe with latest 4.1.0-SNAPSHOT and it works perfectly. I'm not able to try it with 4.0.0.Final because Maven repository is down at the moment.

           

          How did you use the page? I tried both ui:decorate and ui:include

           

          <html ...>

              <h:head/>

              <h:body>

                 <ui:decorate tempate="scroll-data-table.xhtml"/>

              </h:body>

          </html>

           

          <html ...>

             <h:head/>

             <h:body>

                <ui:include src="scroll-data-table.xhtml"/>

             </h:body>

          </html>

           

          Regards,

          Palo

          • 2. rich:dataScroller is rendered but does not work
            elisei Newbie

            Hi Palo,

             

            this is true. I tried to open the page "as it is". Without <html>-Tags. With them (html, head, body) it functions.

             

            Now I have to find out why this happens in my bigger application. I use the rich:dataScroller inside a composite-component. And there, the same thing happens. The scroller is rendered, but is not functioning.

             

            I have to find out now, where the problem is.

             

            Thanks for your answer.

             

            Regards,

            Elisei