changeset 2389:3b1a7f34e19b

flys/issue499: Deactivate validation for 'W am Pegel' flys-client/trunk@4050 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 14 Feb 2012 16:33:26 +0000 (2012-02-14)
parents d53f8cc1702c
children 39955a31f090 29e28bb404ec
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java
diffstat 2 files changed, 18 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Feb 13 18:00:48 2012 +0000
+++ b/flys-client/ChangeLog	Tue Feb 14 16:33:26 2012 +0000
@@ -1,3 +1,14 @@
+2012-02-14	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	Another partial fix/workaround for flys/issue499.
+
+	* src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java:
+	  _DIRTY_ hack to be able to enter values for "W am Pegel".
+	  The validator should check against min W / max W of the gauge
+	  where the start km is in.
+	  We currently assume hard coded that the have to be between
+	  0 and 100000.
+
 2012-02-13	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	Another partial fix/workaround for flys/issue499.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Mon Feb 13 18:00:48 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Tue Feb 14 16:33:26 2012 +0000
@@ -713,16 +713,17 @@
     }
 
     protected List<String> validateSingleValues() {
-        if (isWMode()) {
-            return validateSingle(wArrayPanel, minW, maxW);
+        if (isWFree()) {
+            // FIXME: We need min W and max W of the start km of the range.
+            return validateSingle(wArrayPanel, 0, 100000);
+        }
+        else if (isWMode()) {
+            //return validateSingle(wArrayPanel, minW, maxW);
+            return validateSingle(wArrayPanel, 0, 100000);
         }
         else if (isQFree()) {
             return validateSingle(qFreeArrayPanel, minQFree, maxQFree);
         }
-        else if (isWFree()) {
-            // FIXME: We need min W and max W of the start km of the range.
-            return validateSingle(wArrayPanel, 0, 100000);
-        }
         else {
             return validateSingle(qArrayPanel, minQ, maxQ);
         }

http://dive4elements.wald.intevation.org