Grid Dataprovider


I have a simple question but I just dont get it.

I am trying to get data in a grid. For example I have a entity “Person”. How do I get all persons in a grid within a view?

I tried it with the
but I was confused where they get the variable “persons” in this code snippet:

ListDataProvider<Person> dataProvider = DataProvider.ofCollection(persons); Is there maybe a full example for dummys with all needed imports and classes (custom dataprovider, entity, view, service, etc.)?

Thank you for your help!


Here you have few examples:

Full bakery or application example have a grid with lazy provider.

You have also few tutorials:

Here’s a good blog post about lazy loading Grid:
There’s something about the backend services. It also has links to two small example projects with Java EE and Spring.