Hi,
In your case, I think it would be easiest to just change your code to use a proper ClickListener for the button:
new Button("Commit", new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
// TODO form.commit(), handle potential exception
}
});
Best Regards,
Marc