6 Replies Latest reply on Apr 18, 2007 10:49 AM by ilya_shaikovsky

    datascroller

    moldovan

      Hy Guys!

      I changed the datascroller in my pages from myfaces datascroller to richfaces one, bacause of the errror with the duplicated id from the myfaces-datascroller when using ajax4jf.


      But there are 2 strange behaviours, if i customize the richfaces datascroller:

      -) Adding facets:
      I tried it with all facets ("first", "last", "next", "previous", "fastforward", "fastrewind"), but neither text from outputText nor image from graphicImage is displayed. Only the automatic-created site-links (1,2,3,...) are readable.
      This bevaviour looks like similar to a message you can read here _> http://jboss.com/index.html?module=bb&op=viewtopic&t=105808

      -) adding the attribute renderIfSinglePage - setting to false:
      If dataTable contains more than 1 Page, all is ok (datascroller is rendered in the right way).
      But if there is only 1 Page, it seems that scroller-component also will be generated but is empty! --> You can see border and background of the scoller (also html-code of the scroller in the source-code of the page).
      So, is the scroller always visible, even if i set the attribute to false? For me it would be better , that datascoller should not be rendered, if the list of the table only contains one defined page.

        • 1. Re: datascroller

          do you use RichFaces 3.0.0 or one of the 3.0.1 Snapshots ?

          • 2. Re: datascroller
            moldovan

            Hello Sergey!

            I had tested it with the RichFaces 3.0.0 and the snapshot from yesterday!

            I yesterday wrote a small application with table and datascroller on a site, to test, if it is a vault of my big application, but also it doesn't work.

            • 3. Re: datascroller
              t.h.alves


              I´m using RichFaces 3.0.0 and the renderIfSinglePage="false" does not work here too...

              • 4. Re: datascroller

                add issue to RichFaces jira and attach the small application there, please. It helps to reproduce the same problem on our side

                • 5. Re: datascroller
                  moldovan

                  Ok, with further testing, i got it working!

                  It seems to me, that i had a chaching problem! After restarting 2 times and deleting folders (log, temp, work, etc.) of jboss it worked:
                  -) images in the facets are displayed, also outputText get rendered
                  -) And also the renderIfSinglePage attribute works.


                  But a small question do i have:
                  Is there a possibility to only get the facets displayed, which a implement in code?
                  Because, in my webapp, i sometimes only use previous- and next-facet, but all facets become visible (the facets, wich i do not have definde get the standard labels: <<, << <<, ...).

                  Greetings, thomas!

                  • 6. Re: datascroller
                    ilya_shaikovsky

                    May be try to use binding and add/remove facets from the model..