I am following the example of Vaadin Grid’s Filter: https://vaadin.com/components/vaadin-grid/java-examples/filtering
List<Person> personList = getItems();
Grid<Person> grid = new Grid<>();
ListDataProvider<Person> dataProvider = new ListDataProvider<>(
personList);
grid.setDataProvider(dataProvider);
In my case:
Grid<ContasPagar> grid = new Grid<>();
ListDataProvider<ContasPagar> dataProvider = new ListDataProvider<>(
listaContasPagar);
grid.setDataProvider(dataProvider);
But I am receive this error:
The method setDataProvider(DataProvider<ContasPagar,?>) in the type Grid is not applicable for the arguments (ListDataProvider)
in the method setDataProvider expect receive a DataProvider<ContasPagar,?> and not ListDataProvider.
Is There an error in the vaadin sample?
I Would like some help!