I'm working with an editable Grid with Vaadin 7. When a row is in edit mode, it shows two buttons: save and cancel.

(Just in case, the image was taken from here Book of Vaadin)
With the:
grid.getEditorFieldGroup().addCommitHandler(new CommitHandler() {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unchecked")
@Override
public void preCommit(CommitEvent commitEvent) throws CommitException{}
@Override
public void postCommit(CommitEvent commitEvent) throws CommitException{}
});
I can do something in the save action. But, can I do something like that with the cancel action?
Thank you.
This is a serious deficiency of the component. According to the forum, they're working on it, but for the time being it seems that the most straightforward way is to extend the Grid component and override the doCancelEditor method. Here's a snippet:
Note that you have to tell the MyGrid object when you create the row. Also, note that you're extending the server side, so you don't have to alter the client (widget code), but you do need to refer to the new component in your UI design.