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++; } }