hope i got u right; as the design+functionality of the datascroller (such as number of pages+styles of controls...) is generated based upon the collection to which the target table refers your data/collection must be present right from the start. apart from that there's no real reason for fetching the data heap wise.
Yeah, from what I've found so far there isn't a way to fetch only 20 of total 200 items and still have the rich:datascroller. It appears that the datascroller asks the table how many rows it has and because I've only loaded 20, the scroller believes there is no need for scrolling...
I can't use the datascroller at present because the lists of data are likely to be close to 1 million items. So I'm currently adding my custom paging controls back in, but it would be much 'nicer' to use the rich:datascroller.
Have a look to docs related to ExtendedDataModel.
I.e. under "ExtendedDataModel" tab http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=dataModel
Code looks frightening. But once explored it is easy to use.
yes.. at these fourm already present a couple of posts from guys who successfully implemented lazy loading using data model
Thank you all, I shall take a look at the dataModel