1 Reply Latest reply on Sep 5, 2008 8:08 AM by Ilya Shaikovsky

    How to set the datascroller current page at backend bean?

    kw wong Newbie

      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