0

我正在尝试使我的网格可编辑 grid.setEditorEnabled(true);

但是当我运行应用程序并双击任何单元格时,它会引发以下异常

Caused by: com.vaadin.data.util.converter.Converter$ConversionException: Unable to convert value of type java.lang.Integer to presentation type class java.lang.String. No converter is set and the types are not compatible.
at com.vaadin.data.util.converter.ConverterUtil.convertFromModel(ConverterUtil.java:116)
at com.vaadin.ui.AbstractField.convertFromModel(AbstractField.java:714)
at com.vaadin.ui.AbstractField.convertFromModel(AbstractField.java:699)
at com.vaadin.ui.AbstractField.setPropertyDataSource(AbstractField.java:635)

知道可能是什么原因吗?我在这里检查了这个线程,但我无法解决这个问题

常春藤.xml

<!ENTITY vaadin.version "latest.release">

JPAContainer 3.2.0

(我使用了与演示' jpaaddressbook '中的容器相同的结构)

在此先感谢您的帮助

4

0 回答 0