From 8139cd8c89ee28aafc3bb0a1ea39e9a2697fef77 Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Mon, 8 Aug 2016 15:46:52 +0300 Subject: Binding.withValidator and Binder.validate methods (#26). Change-Id: I0641ea6118cd873c803d3c21d82b14fe8db4baa2 --- documentation/datamodel/datamodel-forms.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'documentation') 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 validationErrors = binder.validate(); +List> 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 errors = binder.validateWithBean(copy); + List> errors = binder.validateWithBean(copy); if (errors.isEmpty()) { // Write new values to the actual bean -- cgit v1.2.3