-
1. Re: rich:datascroller data loading
janson12 Nov 13, 2008 6:44 AM (in response to victoria122)Hi,
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. -
2. Re: rich:datascroller data loading
victoria122 Nov 13, 2008 6:50 AM (in response to victoria122)Hi Janson,
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.
Thanks
Victoria -
3. Re: rich:datascroller data loading
lauri Nov 13, 2008 7:12 AM (in response to victoria122)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. -
4. Re: rich:datascroller data loading
ilya_shaikovsky Nov 13, 2008 7:14 AM (in response to victoria122)yes.. at these fourm already present a couple of posts from guys who successfully implemented lazy loading using data model
-
5. Re: rich:datascroller data loading
victoria122 Nov 13, 2008 7:31 AM (in response to victoria122)Thank you all, I shall take a look at the dataModel
Victoria