changeset 304:992afc0299cd

Bugfix: Repaired the dynamic UI part of the RiverSelect state in DESCRIBE. flys-artifacts/trunk@1675 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 13 Apr 2011 08:31:20 +0000 (2011-04-13)
parents 2d393c8bd38c
children f0966e1a5a7a
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/RiverSelect.java
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Apr 12 13:42:14 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Apr 13 08:31:20 2011 +0000
@@ -1,3 +1,9 @@
+2011-04-13  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/RiverSelect.java:
+	  Bugfix: added missing label node to root node and a namespace to the
+	  data node.
+
 2011-04-12  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/RiverSelect.java	Tue Apr 12 13:42:14 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/RiverSelect.java	Wed Apr 13 08:31:20 2011 +0000
@@ -55,7 +55,7 @@
             cr, "select",
             new String[] { "uiprovider" },
             new String[] { "select_with_map" });
-        cr.addAttr(select, "name", data.getName());
+        cr.addAttr(select, "name", data.getName(), true);
 
         Element label = ProtocolUtils.createArtNode(
             cr, "label", null, null);
@@ -63,6 +63,8 @@
         Element choices = ProtocolUtils.createArtNode(
             cr, "choices", null, null);
 
+        select.appendChild(label);
+
         label.setTextContent(Resources.getMsg(
             context.getMeta(),
             getID(),

http://dive4elements.wald.intevation.org