RESTContainer

Hi,
is there RESTContainer in Vaadin? Something like JPAContainer, but for REST.

Hi,

as far as I know there isn’t one. It shouldn’t be too hard to populate one of the existing containers from a REST datasource though.

-tepi

Thanks for the answer!
That’s how I’m doing it now, but I’ve hoped maybe there is a better way.

I wouldn’t say throwing in a Container interface to this battle makes your application better. Just
get the stuff from REST service as Java objects
and place them to a BeanItemContainer. If you care about the performance, you should use
Viritin
(ListContainer for neclible memory overhead or if you really need lazy loading, go with LazyList-ListContainer combination or MTable/LazyComboBox).

cheers,
matti