> -----Original Message-----
> From: Catalin Kormos [mailto:[EMAIL PROTECTED] 
> Subject: pageSelectionListener tag implementation help needed
> I have to tell that i'm very frustrated that there is no way 
> to find out the page selection change on a dataTable that 
> displays rows on more than one page.
> Please correct me if i'm wrong.

Bind your dataScroller pageIndexVar to a property in your own bean, i.e.
on the .jsp page:
<x:dataScroller ....
  pageIndexVar="#{myTableBean.pageIndex}"
</x:dataScroller>

And in your pageIndex's setter do whatever you needed to do when the
page changes, e.g.

Public void setPageIndex(Integer pageIndex) {
 if (pageIndex == null) return; 
 if (!pageIndex.equals(this.pageIndex)) pageChanged();
 this.pageIndex = pageIndex;
}

Would that work?

Kalle

Reply via email to