summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-08 15:52:05 +0300
committerDenis Anisimov <denis@vaadin.com>2016-08-15 10:03:20 +0000
commitf2bb3c886c0b68c9a4e8212d6625614575148f80 (patch)
treed5cdc958501d273da0a3d9343d6254581a6e30d2 /documentation
parent1c78d48668f5f1fc74cdb1802fff668a55fdd309 (diff)
downloadvaadin-framework-f2bb3c886c0b68c9a4e8212d6625614575148f80.tar.gz
vaadin-framework-f2bb3c886c0b68c9a4e8212d6625614575148f80.zip
Add converter support to Binder
Change-Id: Ibf1223d4842d72f0209231dfd70e1d6c4deb6d30
Diffstat (limited to 'documentation')
-rw-r--r--documentation/datamodel/datamodel-forms.asciidoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/datamodel/datamodel-forms.asciidoc b/documentation/datamodel/datamodel-forms.asciidoc
index b2aa60dc0b..3bea6f857c 100644
--- a/documentation/datamodel/datamodel-forms.asciidoc
+++ b/documentation/datamodel/datamodel-forms.asciidoc
@@ -236,7 +236,7 @@ binder.forField(yearOfBirthField)
Slider salaryLevelField = new Slider("Salary level", 1, 10);
binder.forField(salaryLevelField)
- .withConverter(Integer::doubleValue, Double::intValue)
+ .withConverter(Double::intValue, Integer::doubleValue)
.bind(Person::getSalaryLevel, Person::setSalaryLevel);
----