diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java @ 892:63b258bf365c

Bugfix: Use name instead of description for loading new facets via Datacage. flys-client/trunk@2735 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 14 Sep 2011 10:00:55 +0000
parents ace7e9cfbb7f
children 2b6efb8b2301
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java	Wed Sep 14 09:45:37 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java	Wed Sep 14 10:00:55 2011 +0000
@@ -179,7 +179,7 @@
             if (factory != null) { // we need at least a factory
                 String artifact = node.getAttribute("artifact-id");
                 String out      = node.getAttribute("out");
-                String name     = node.getName();
+                String name     = node.getAttribute("facet");
                 String ids      = node.getAttribute("ids");
 
                 toLoad.add(artifact, factory, out, name, ids);
@@ -247,7 +247,8 @@
         tn.setAttribute("parent-id", parentId);
         tn.setAttribute("id", id);
         // TODO: i18n
-        tn.setAttribute("name", node.getName());
+        tn.setAttribute("name", node.getDescription());
+        tn.setAttribute("facet", node.getName());
         nodes.add(tn);
         AttrList attrs = node.getAttributes();
         if (attrs != null) {

http://dive4elements.wald.intevation.org