changeset 1813:b3a67d946568

Fix bug where wrong attribute was set. flys-artifacts/trunk@3142 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 02 Nov 2011 12:15:58 +0000 (2011-11-02)
parents dd084cf3f284
children a9b690d864a7
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedDomFacet.java
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Nov 02 12:12:48 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Nov 02 12:15:58 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-02	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/ManagedDomFacet.java:
+	  Fix bug where (wrong) active-attribute was set, doc.
+
 2011-11-02	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Refactoring to allow mainvalues in both discharge and computed
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedDomFacet.java	Wed Nov 02 12:12:48 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/ManagedDomFacet.java	Wed Nov 02 12:15:58 2011 +0000
@@ -123,7 +123,7 @@
 
         facet.setAttributeNS(
             ArtifactNamespaceContext.NAMESPACE_URI,
-            "active",
+            "art:active",
             String.valueOf(active));
     }
 
@@ -167,6 +167,10 @@
     }
 
 
+    /**
+     * Import into document.
+     * @param doc Document to be imported to.
+     */
     @Override
     public Node toXML(Document doc) {
         return doc.importNode(facet, true);

http://dive4elements.wald.intevation.org