vaadin7 - how to identify, if in any control, user changes values

in a view I display a form with many controls
if a user change values in one or more controls, and the user try to exit without saving . I want to show a message asking if he want to save before exit

is a way to identify, if in any control, user changes values (without compare manually, in each control, initial vs actual value)

I am using vaadin 7 ( BeanItemContainer and fieldgroups )

thanks for any help

Fidel Lagos

If all of your controls are bind with FieldGroup, you should be able to use FieldGroup.isModified() for this.