Maris K wrote:
Problem encountered is that Range passed to walk method always has getFirstRow() = 0. Number of rows returned is fine. Does anyone has a clue how to solve this?
To be clear, are you referring to scrolling through your data with the dataScroller? Are you taking into account the page offset?
I am referring to ajax loading when scrolling through extended data table, next rows get fetched from DB. extendedDataTable clientRows param is set to 20 which is couple of rows more than showed to trigger loading behavior and enable scrolling.
The dataScroller publishes a System event that RichFaces listens for:
This system event listener will push an attribute to your data table with the current page:
So you can query the dataTable component for the active page, and use that along with the number of rows per page to find what your starting row is. Use that when executing your database look up.