-
1. Re: Richfaces 4.2.3 ExtendedDataModel walk method
bleathem Sep 23, 2013 1:16 PM (in response to maarisk)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?
-
2. Re: Richfaces 4.2.3 ExtendedDataModel walk method
maarisk Sep 23, 2013 6:35 PM (in response to bleathem)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.
-
3. Re: Richfaces 4.2.3 ExtendedDataModel walk method
bleathem Sep 24, 2013 6:06 PM (in response to maarisk)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.