we are getting a strange error when adding a grid to our application (any view).
We can’t figure out why this is happaning. Maybe someone can point us at the right direction.
Spring Boot 2.0 Application
Vaadin 10 Beta3 (stays the same at Beta5)
Are those the only client-side erros you get? I would guess that your app fails to serve gridConnector.js file that is packaged with the Grid component. But in that case the first error should be about failing to load that resource.
My friend tested using Grid with our [skeleton-starter-flow-spring]
(https://github.com/vaadin/skeleton-starter-flow-spring) and it works fine. Maybe you can check from that project how to set up everything to make Vaadin 10 work with Spring.
Still getting this error. Downloaded my-starter-project (spring boot and vaadin )and added a grid with 2 records in it and getting the error. Any help would be appreciated.
public MainView(@Autowired MessageBean bean) {
Button button = new Button("Click me",
e -> Notification.show(bean.getMessage()));
add(button);
Grid<Person> grid = new Grid<>(Person.class);
add(grid);
grid.setHeight("300px");
grid.setColumns("firstName","lastName","email");
grid.setItems(initGrid());
}
List<Person> initGrid() {
ArrayList<Person> people = new ArrayList<>();
Person aPerson = new Person();
aPerson.setFirstName("Joe");
aPerson.setLastName("Smith");
aPerson.setEmail("joe.smith@abc.com");
people.add(aPerson);
aPerson = new Person();
aPerson.setFirstName("Patrick");
aPerson.setLastName("Baker");
aPerson.setEmail("patrick.baker@abc.com");
people.add(aPerson);
return people;
}
Are you on 13.0.0beta by any chance? If so, try upgrading to 13.0.1. I had a grid error that was introduced in 13.0.0.beta1-5. It was resolved in 13.0.1.