Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
After saving Grid's editor form, my Container data lose couple
After save grid's editor form my grid data is not refresh. When I try to re-edit it, I've got the following error:
java.lang.IllegalArgumentException: Given item id (demo.entity.User@7937e6d4) does not exist in the container
I've checked hashcode on User entity and it remains the same before and after commit.
The issue is related to the TextFIeld, in case of ComboBox refresh and re-editing works fine.
What do I do wrong?
Which container are we talking about, a BeanItemContainer, JPAContainer, or something else? It could be that with JPA, after you save an entity, the item ID or something changes, and you'd need to update the container...or something.
It's good that you considered the hashcode; if it depended on the state of the entity, it could indeed be a problem, but maybe that's not the case.
In fact it's a BeanItemContainer. But I fould a bug requested with similar issue:
https://dev.vaadin.com/ticket/16195