Hi,
I have a datatable and datascroller on my page and I want to have another aj4 button to set the current page to the next page. On the backend, I have a action using datascroller.setPage to set the new page, but it doesn't work.
I try to display the datascoller page and show that it doesn't change the scroller page. How to change the datascoller current page?
System.out.println("1datascroller.getPage()="+datascroller.getPage());
if (datascroller.getPage()>1) {
datascroller.setPage(datascroller.getPage()-1);
System.out.println("2datascroller.getPage()="+datascroller.getPage());
}
The output is
1datascroller.getPage()=2
2datascroller.getPage()=2
just bind "page" property of the dataScrollers to the same property in your bean and manage this property.