From 549e7bf8043b4f7f5f33ea0e38224e4f83c8e563 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Fri, 28 Oct 2011 17:26:01 +0200
Subject: [PATCH] more xmlrpc datatypes

---
 hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java           |   12 ++++++++++++
 hsarweb/src/de/hsadmin/web/vaadin/EMailTargetPropertyFieldFactory.java |    9 +++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

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

--
Gitblit v1.9.0-SNAPSHOT