Closed mrts closed 5 years ago
The problem was with altered behavior of VerticalLayout
and Grid
in Vaadin 10, I had to use setSizeFull()
in MainView
to make the grid visible:
@Autowired
public MainView(DataPopulator dataPopulator, Repository<Book> bookRepository) {
this.bookRepository = bookRepository;
dataPopulator.fillDatabase();
add(createBookGridCrud());
setSizeFull(); // <---
}
Seems obvious in the hindsight, but this was not necessary in Vaadin 8.
Vaadin 10 GridCrud
is really nice, thank you!
Thanks for
GridCrud
, it is really useful and the API is elegant!Version 2.3.0 worked very well in a library management app prototype that I created with Vaadin 8, but version 3.6.0 displays an empty grid with similar code in a Spring Boot project with Vaadin 10.
Here's the screenshot that shows that grid contains 5 items (I clicked on refresh to trigger the notification) but does not display them;
Here's the relevant snippet:
The full project is here:
https://gitlab.com/library-manager/library-manager-admin-vaadin/
Any idea why the grid stays empty?