Grid Dataprovider

Hello,

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
documentation
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!

Hi,

Here you have few examples:
https://vaadin.com/start

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

You have also few tutorials:

Hi,
Here’s a good blog post about lazy loading Grid: https://vaadin.com/blog/lazy-loading-with-vaadin-8
There’s something about the backend services. It also has links to two small example projects with Java EE and Spring.
-Katri