Grid - Save and Cancel Listener?


I’m new to vaadin and I’m a bit confused with the save and cancel button when setEditorEnabled = true. Do you need to provide additional codes in order to save the data or it automatically saves all the data to the database when you click on save? Thanks!


when you click on Save, the editor will commit data to the Container you use in the Grid. What happens after that is up to you, e.g. if you use SQLContainer you could just call commit() on it to propagate the changes to the database.