diff --git a/src/main/java/org/vaadin/stepbystep/PersonEditorView.java b/src/main/java/org/vaadin/stepbystep/PersonEditorView.java index fdd0004..32d07c0 100644 --- a/src/main/java/org/vaadin/stepbystep/PersonEditorView.java +++ b/src/main/java/org/vaadin/stepbystep/PersonEditorView.java @@ -1,11 +1,20 @@ package org.vaadin.stepbystep; +import com.vaadin.data.Binder; import org.vaadin.stepbystep.person.backend.Person; /** * Created by amahdy on 6/1/17. */ public class PersonEditorView extends PersonEditorDesign { + + Binder binder = new Binder<>(Person.class); + + public PersonEditorView() { + binder.bindInstanceFields(this); + } + public void setPerson(Person value) { + binder.setBean(value); } }