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.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

GeneratedPropertyContainer and CommitHandler, getting the Bean data?

Alisa Lee
6 years ago Feb 15, 2017 8:32pm
Henri Sara
6 years ago Feb 17, 2017 7:02am

The item in the wrapped case is a GeneratedPropertyItem (as the exception indicates). You can use GeneratedPropertyItem.getWrappedItem() to get the original BeanItem, and then get the bean from it. This does require an extra cast, though.

Alisa Lee
6 years ago Feb 22, 2017 2:36pm