HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2012-09-21 02d4a5ea8f4303e9e2008ca75042ce3c7b7fb530
serialize map-values for table view
1 files modified
16 ■■■■■ changed files
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java 16 ●●●●● patch | view | raw | blame | history
hsarweb/src/de/hsadmin/web/vaadin/TableComponentFactory.java
@@ -160,6 +160,22 @@
                                    }
                                    itemData[idx] = buf.toString();
                                }
                                if (valueObject != null && valueObject instanceof Map) {
                                    StringBuffer buf = new StringBuffer();
                                    Map valueMap = (Map) valueObject;
                                    for (Object o : valueMap.keySet()) {
                                        if (o instanceof String) {
                                            if (buf.length() > 0) {
                                                buf.append(',');
                                            }
                                            String key = (String) o;
                                            buf.append(key);
                                            buf.append('=');
                                            buf.append(valueMap.get(key).toString());
                                        }
                                    }
                                    itemData[idx] = buf.toString();
                                }
                                idx++;
                            }
                        }