I have a rich:dataTable with dataScroller. In each page I need to show 5 records. Record count dynamically changes. I refresh dataTable every 20 seconds to see if there is any new record.
If there are more than 5 records, dataTable will have two or pages.
If there are more than one pages for dataTable, is it possible to say dataScroller to switch pages every 10 seconds? After it shows last page then it should back to first page.
Thanks
Well, you can bind dataScroller with the bean (using de prop. “binding”) and use a javascript to “click a invisible button” that executes a bean function to go to the next page..
Xhtml:
Bean:
Dont forget to make a new instance of htmlDataScroller or you’ll get a nullPointException..