diff options
author | Matti Hosio <mhosio@vaadin.com> | 2014-12-17 10:28:31 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-12-17 10:45:23 +0000 |
commit | f1eb1c4bf357c9e57c129455e924d697a674aa6f (patch) | |
tree | 723d848edf24f9910234b6ec5d81fb6b818a8181 /uitest/src/com/vaadin/tests/declarative | |
parent | e547f024533bef83b8c8c8e522240f34765c894d (diff) | |
download | vaadin-framework-f1eb1c4bf357c9e57c129455e924d697a674aa6f.tar.gz vaadin-framework-f1eb1c4bf357c9e57c129455e924d697a674aa6f.zip |
Some fixes to potus demo (#7749)
Change-Id: I61b80e8610431988ae3bd6a88993b010d116db4e
Diffstat (limited to 'uitest/src/com/vaadin/tests/declarative')
-rw-r--r-- | uitest/src/com/vaadin/tests/declarative/PotusCrud.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/declarative/PotusCrud.java b/uitest/src/com/vaadin/tests/declarative/PotusCrud.java index 76051525c0..70ad956045 100644 --- a/uitest/src/com/vaadin/tests/declarative/PotusCrud.java +++ b/uitest/src/com/vaadin/tests/declarative/PotusCrud.java @@ -87,6 +87,7 @@ public class PotusCrud extends VerticalLayout { doRevert(); } }); + fg = new FieldGroup(); } protected void doRevert() { @@ -95,6 +96,7 @@ public class PotusCrud extends VerticalLayout { protected void doDelete() { potusContainer.removeItem(potusList.getValue()); + fg.setItemDataSource(null); } protected void doSave() { @@ -112,9 +114,10 @@ public class PotusCrud extends VerticalLayout { protected void doEdit() { if (potusList.getValue() != null) { - fg = new FieldGroup(); fg.setItemDataSource(potusList.getItem(potusList.getValue())); fg.bindMemberFields(potusForm); + } else { + fg.setItemDataSource(null); } } |