aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-11-02 13:28:32 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-11-02 13:28:32 +0000
commitc949b26dd3d05b5700b1037cfe6d1e6c8581640a (patch)
treeb507fa61e4c9eaeea2f2633e0edb0430cf736d98
parent211fb761cdb6246e87e9b7e404e76dfa4a2da13c (diff)
downloadvaadin-framework-c949b26dd3d05b5700b1037cfe6d1e6c8581640a.tar.gz
vaadin-framework-c949b26dd3d05b5700b1037cfe6d1e6c8581640a.zip
Fixed #1076 BeanItem fails if getter not defined
svn changeset:2687/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/data/util/BeanItem.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/itmill/toolkit/data/util/BeanItem.java b/src/com/itmill/toolkit/data/util/BeanItem.java
index de5f291394..a6c50c4339 100644
--- a/src/com/itmill/toolkit/data/util/BeanItem.java
+++ b/src/com/itmill/toolkit/data/util/BeanItem.java
@@ -86,9 +86,11 @@ public class BeanItem extends PropertysetItem {
Class type = pd[i].getPropertyType();
String name = pd[i].getName();
- Property p = new MethodProperty(type, bean, getMethod,
- setMethod);
- addItemProperty(name, p);
+ if ((getMethod != null) && (setMethod != null)) {
+ Property p = new MethodProperty(type, bean, getMethod,
+ setMethod);
+ addItemProperty(name, p);
+ }
}
} catch (java.beans.IntrospectionException ignored) {
}