Change property value on user confirmation

Hello Vaadin community!

I am currently experimenting with the vaadin frame work, especially with the data binding.
This might be asked over and over, but i could not find a similar case yet (this might be my lacking search skills)
Here is the situation:

I have a class Person with some Strings, ints, ect. No further interfaces implemented.
A user mask presents this class through various text fields.
Currently, i am binding the data to the fields by using something like that:

.setPropertyDataSource(new ObjectProperty(person
.getPersonId(), Integer.class));

No i want the user to be able to change some values, and only after he presses the save button,
these changes should be written through.

How would be the best way to set up this behaviour? Implementing the property interface in my class?
Binding the Person fields in a different way?

I thank you in advance,
toblerone

Try using BeanItem and BeanItem.getItemProperty(“personId”). The Vaadin data binding works well with the Form component, which can manage multi-field commits for you; just add the bean item to the form and you should be good to go :slight_smile: