我试图让我的网格可编辑 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)
任何想法可能是什么原因?我检查了这个帖子here,但我无法解决问题
的ivy.xml
<!ENTITY vaadin.version "latest.release">
JPAContainer 3.2.0
(我在演示中使用与容器相同的结构&#39; jpaaddressbook&#39;)
提前感谢您的帮助