diff options
Diffstat (limited to 'documentation/datamodel/datamodel-forms.asciidoc')
-rw-r--r-- | documentation/datamodel/datamodel-forms.asciidoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/datamodel/datamodel-forms.asciidoc b/documentation/datamodel/datamodel-forms.asciidoc index 1fd79dd9b9..0218140425 100644 --- a/documentation/datamodel/datamodel-forms.asciidoc +++ b/documentation/datamodel/datamodel-forms.asciidoc @@ -375,8 +375,8 @@ We can use that event to make the save and reset buttons of our forms become ena [source, java] ---- binder.addStatusChangeListener(event -> { - boolean isValid = !event.hasValidationErrors(); - boolean hasChanges = binder.hasChanges(); + boolean isValid = event.getBinder().isValid(); + boolean hasChanges = event.getBinder().hasChanges(); saveButton.setEnabled(hasChanges && isValid); resetButton.setEnabled(hasChanges); |