Table and Select paging and backend fetch

Tervehdys Pohojanmaalta :slight_smile: ,

I am building an application that will have tables and selects containing possible housands of items. I would like to receive paging information from Table and Select component to lazily fetch data from EJB backend. I tried to check out the listener APIs for paging, but nothing catched my eye.

Thanks beforehand.

_
Jukka

You should implement this in datasource.

Hi Jukka!

I’d say we ought to improve our documentation on this one.

To use properly with Table you need a Container.Indexed type of container. Check out the HbnContainer in incubator that might help you. The implementation there is not that much tested and Hibernate specific.

You can use that same container in Select (or ComboBox). I’m afraid that Selects are not that well optimized performance wise, so you might need some tuning there in case you have a lots of data.

cheers,
matti

… just to be bit more specific on Containers, actually any Container type will be ok. But if you have thousands of objects in your back end you’ll end up having some performance issues as your contained will be wrapped by Toolkit. Table uses Container.OrdredWrapper if necessary. And to make Table work smoothly with large data sets, you really need that Container.Indexed implemented too.

cheers,
matti