changeset 2388:d53f8cc1702c

Another partial fix/workaround for flys/issue499. flys-client/trunk@4047 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 13 Feb 2012 18:00:48 +0000
parents 79483ff032bb
children 3b1a7f34e19b
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java
diffstat 2 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Feb 13 16:14:37 2012 +0000
+++ b/flys-client/ChangeLog	Mon Feb 13 18:00:48 2012 +0000
@@ -1,4 +1,15 @@
-2012-02-09	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+2012-02-13	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 auf freier Strecke".
+	  We need to get the interpolated min/max Ws at the start km to do
+	  proper validation.
+	  We currently assume hard coded that the have to be between
+	  0 and 100000.
+
+2012-02-13	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	Client side fix for flys/issue499. There is an server issue, too.
 
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Mon Feb 13 16:14:37 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java	Mon Feb 13 18:00:48 2012 +0000
@@ -720,7 +720,8 @@
             return validateSingle(qFreeArrayPanel, minQFree, maxQFree);
         }
         else if (isWFree()) {
-            return validateSingle(wArrayPanel, minW, maxW);
+            // 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