changeset 129:b06cd117b565

Appended a missing node to the DESCRIBE. flys-artifacts/trunk@1470 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 14 Mar 2011 17:43:52 +0000
parents 206312c2aa76
children 1fa38d60a702
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java
diffstat 2 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Mar 14 16:32:42 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Mar 14 17:43:52 2011 +0000
@@ -1,3 +1,9 @@
+2011-03-14  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/DefaultState.java:
+	  Appended the missing label node that contains the human readable name of
+	  the data item.
+
 2011-03-14  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java,
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java	Mon Mar 14 16:32:42 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java	Mon Mar 14 17:43:52 2011 +0000
@@ -85,18 +85,15 @@
         StateData   data,
         CallContext context)
     {
-        String name = Resources.getMsg(
-            context.getMeta(),
-            data.getName(),
-            data.getName());
-
         Element select = ProtocolUtils.createArtNode(
             cr, "select", null, null);
-        cr.addAttr(select, "name", name, true);
+        cr.addAttr(select, "name", data.getName(), true);
 
         Element label = ProtocolUtils.createArtNode(
             cr, "label", null, null);
 
+        select.appendChild(label);
+
         label.setTextContent(Resources.getMsg(
             context.getMeta(),
             getID(),

http://dive4elements.wald.intevation.org