Hello guys,
I have a problem to use the JPAContainer with tree.
after setting the data source and the tree:
jpaContainer.setParentProperty("parent");
tree = new Tree(null, jpaContainer);
tree.setImmediate(true);
tree.setSizeFull();
tree.setItemCaptionMode(ItemCaptionMode.PROPERTY);
tree.setItemCaptionPropertyId("description");
I try to add one entity:
jpaContainer.addEntity(entity);
This action triggers the following error:
Caused by: java.lang.AbstractMethodError: com.vaadin.addon.jpacontainer.JPAContainer.getContainerFilters()Ljava/util/Collection;
at com.vaadin.ui.Tree.containerItemSetChange(Tree.java:942)
The line of code that throws the error (belonging to Tree.containerItemSetChange method) is the following:
boolean hasFilters = !((Filterable) getContainerDataSource())
.getContainerFilters().isEmpty();
JPAContainer does not have the getContainerFilters() method, instead have the getFilters() method.
i’m using vaadin 7.1.7
it’s a bug ? or is my error ??
Thank you in advance