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.
I am new to Vaadin and I am having trouble using the Indexed Container.
I have an IndexedContainer connected to a table and an event change listener on the container. I want to be able to write changes to a DB but the event object only has the new value. Is there any way of getting the changed item's ID from the value change event?
Not really. You can't event iterate over items in the container and compare item properties, because IndexedContainer returns always new instances of Item and Property. I would suggest using BeanItemContainer or then you have to keep track of the changes outside the container.