From 549e7bf8043b4f7f5f33ea0e38224e4f83c8e563 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 28 Oct 2011 15:26:01 +0000 Subject: [PATCH] more xmlrpc datatypes --- .../web/vaadin/EMailTargetPropertyFieldFactory.java | 9 +++++++++ .../de/hsadmin/web/vaadin/TableComponentFactory.java | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/hsarweb/src/de/hsadmin/web/vaadin/EMailTargetPropertyFieldFactory.java b/hsarweb/src/de/hsadmin/web/vaadin/EMailTargetPropertyFieldFactory.java index 8e47771..94c3c91 100644 --- a/hsarweb/src/de/hsadmin/web/vaadin/EMailTargetPropertyFieldFactory.java +++ b/hsarweb/src/de/hsadmin/web/vaadin/EMailTargetPropertyFieldFactory.java @@ -77,6 +77,15 @@ public class EMailTargetPropertyFieldFactory implements PropertyFieldFactory { lastIndex++; } } + if (value instanceof Object[]) { + Object[] list = (Object[]) value; + for (Object o : list) { + if (o instanceof String) { + targets.put(lastIndex, new SingleEMailTarget(this, lastIndex, (String) o)); + lastIndex++; + } + } + } targets.put(lastIndex, new SingleEMailTarget(this, lastIndex, "")); repaint(); return layout; diff --git a/hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java b/hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java index a44bc90..107a07e 100644 --- a/hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java +++ b/hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java @@ -148,6 +148,18 @@ public class TableComponentFactory implements ComponentFactory, Serializable { } } } + if (valueObject != null && valueObject instanceof Object[]) { + StringBuffer buf = new StringBuffer(); + for (Object o : (Object[]) valueObject) { + if (o instanceof String) { + if (buf.length() > 0) { + buf.append(','); + } + buf.append((String) o); + } + } + itemData[idx] = buf.toString(); + } idx++; } }