alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
86 stars 54 forks source link

FieldProviders do not work with Vaadin 12 #41

Closed mrts closed 5 years ago

mrts commented 5 years ago

GridCrud seems to mostly work in Vaadin 12, but FieldProviders break.

For example, when using ComboBoxProvider, the following error occurs when you click on edit or add button:

java.lang.ClassCastException: 
  com.vaadin.flow.component.combobox.ComboBox 
  cannot be cast to com.vaadin.flow.data.binder.HasDataProvider
 at org.vaadin.crudui.form.impl.field.provider.AbstractListingProvider
  .buildField(AbstractListingProvider.java:42) ~[crudui-3.6.0.jar:3.6.0]

This is reproducible with TestUI.

alejandro-du commented 5 years ago

Thanks for reporting the issue. The problem was due to a change in the ComboBox hierarchy, so the add-on itself didn't compile with Vaadin 12+. Version 3.7.0 fixes the problem.

mrts commented 5 years ago

Thanks!