diff options
author | Marco Collovati <mcollovati@gmail.com> | 2017-12-29 10:36:38 +0100 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-12-29 11:36:38 +0200 |
commit | 1619d1f0bbd41de3f175b9eb2f34b468ec7e0367 (patch) | |
tree | c8461336b55cfb9b091feb98510345ec3e13fe08 /uitest/src/main/java | |
parent | a0150a9899afd1d6e1251d9281262eddafd1d417 (diff) | |
download | vaadin-framework-1619d1f0bbd41de3f175b9eb2f34b468ec7e0367.tar.gz vaadin-framework-1619d1f0bbd41de3f175b9eb2f34b468ec7e0367.zip |
Treat fields as readonly when bound with null setter (#10477)
Fixes #10476
Diffstat (limited to 'uitest/src/main/java')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/components/datefield/DateTextHandling.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/datefield/DateTextHandling.java b/uitest/src/main/java/com/vaadin/tests/components/datefield/DateTextHandling.java index 8dd7ebbb58..c0e15be7eb 100644 --- a/uitest/src/main/java/com/vaadin/tests/components/datefield/DateTextHandling.java +++ b/uitest/src/main/java/com/vaadin/tests/components/datefield/DateTextHandling.java @@ -45,7 +45,7 @@ public class DateTextHandling extends AbstractTestUI { layout.addComponent(errorLabel); Binder<Void> binder = new Binder<>(); - binder.forField(dateField).withStatusLabel(errorLabel).bind(o -> dateField.getValue(), null); + binder.forField(dateField).withStatusLabel(errorLabel).bind(o -> dateField.getValue(), (aVoid, date) -> {}); Button buttonValidate = new Button("Validate!"); buttonValidate.addClickListener(event1 -> { |