HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-10-28 549e7bf8043b4f7f5f33ea0e38224e4f83c8e563
more xmlrpc datatypes
2 files modified
21 ■■■■■ changed files
hsarweb/src/de/hsadmin/web/vaadin/EMailTargetPropertyFieldFactory.java 9 ●●●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java 12 ●●●●● patch | view | raw | blame | history
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;
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++;
                            }
                        }