diff options
author | Denis Anisimov <denis@vaadin.com> | 2016-08-08 15:46:52 +0300 |
---|---|---|
committer | Denis Anisimov <denis@vaadin.com> | 2016-08-10 09:44:34 +0300 |
commit | 8139cd8c89ee28aafc3bb0a1ea39e9a2697fef77 (patch) | |
tree | 0d76a3e3bce1df853c2896c2bc81546a9401d4cb /documentation | |
parent | fd651d7921dcfb5ae7e89dee0d538e1072eeb00d (diff) | |
download | vaadin-framework-8139cd8c89ee28aafc3bb0a1ea39e9a2697fef77.tar.gz vaadin-framework-8139cd8c89ee28aafc3bb0a1ea39e9a2697fef77.zip |
Binding.withValidator and Binder.validate methods (#26).
Change-Id: I0641ea6118cd873c803d3c21d82b14fe8db4baa2
Diffstat (limited to 'documentation')
-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 cbb50d1743..06705a7fc6 100644 --- a/documentation/datamodel/datamodel-forms.asciidoc +++ b/documentation/datamodel/datamodel-forms.asciidoc @@ -322,7 +322,7 @@ Even if the user has not edited a field, all validation error will be shown if w binder.load(new Person()); // This will make all current validation errors visible -Set<BinderResult> validationErrors = binder.validate(); +List<ValidationError<?>> validationErrors = binder.validate(); if (!validationErrors.isEmpty()) { Notification.show("Validation error count: " @@ -594,7 +594,7 @@ Button saveButton = new Button("Save", event -> { // Create non-shared copy to use for validation Person copy = new Person(person); - Set<BinderResult> errors = binder.validateWithBean(copy); + List<ValidationError<?>> errors = binder.validateWithBean(copy); if (errors.isEmpty()) { // Write new values to the actual bean |