summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-03-05 10:44:19 +0000
committerMarc Englund <marc.englund@itmill.com>2008-03-05 10:44:19 +0000
commit1905023f4a6e4cce6795b0b1bdec465e4f1ec056 (patch)
tree03b18300a905228e53fae67012ff6497faa123f2
parent6faf3e1646f7cba790f3413ddc0028842e4f95b7 (diff)
downloadvaadin-framework-1905023f4a6e4cce6795b0b1bdec465e4f1ec056.tar.gz
vaadin-framework-1905023f4a6e4cce6795b0b1bdec465e4f1ec056.zip
setVisibleItemProperties() did not consider itemDataSource, fixes #139
svn changeset:3969/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/ui/Form.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/ui/Form.java b/src/com/itmill/toolkit/ui/Form.java
index f818c99481..bb6ba54dff 100644
--- a/src/com/itmill/toolkit/ui/Form.java
+++ b/src/com/itmill/toolkit/ui/Form.java
@@ -903,7 +903,10 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
*/
public void setVisibleItemProperties(Collection visibleProperties) {
visibleItemProperties = visibleProperties;
- final Object value = getValue();
+ Object value = getValue();
+ if (value == null) {
+ value = itemDatasource;
+ }
setFormDataSource(value, getVisibleItemProperties());
}