]> source.dussan.org Git - vaadin-framework.git/commitdiff
Documentation: fix wrong method name
authordunand <jeffnadeau@gmail.com>
Thu, 4 May 2017 06:10:09 +0000 (02:10 -0400)
committerIlia Motornyi <elmot@vaadin.com>
Thu, 4 May 2017 06:10:09 +0000 (09:10 +0300)
documentation/components/components-fields.asciidoc

index e680ff44041bcbb01e956d00fbfc4e53c0574dd7..c963c96ebed69c53b2d580c6e19a2182319554bc 100644 (file)
@@ -113,7 +113,7 @@ binder.bind(nameField, Person::getName, Person::setName);
 // After this, whenever the user changes the value
 // of nameField, p.setName is automatically called.
 Person p = new Person();
-binder.bind(p);
+binder.setBean(p);
 ----
 
 For more information on data binding, see <<dummy/../../../framework/datamodel/datamodel-forms.asciidoc#datamodel.forms,"Binding Data to Forms">>