more xmlrpc datatypes

This commit is contained in:
Peter Hormanns 2011-10-28 15:26:01 +00:00
parent 41ba1cfc63
commit 549e7bf804
2 changed files with 21 additions and 0 deletions

View File

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

View File

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