changeset 7563:04cc2dee911e

flys/issue1503: Evil hack to force loaded of data to be bound to 'w_differences'. TODO: Remove all the broken code from DataCageTwinPanel.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 12 Nov 2013 19:47:24 +0100
parents 22b5d1c6e2c0
children c05eff7acd2d
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java	Tue Nov 12 17:46:04 2013 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java	Tue Nov 12 19:47:24 2013 +0100
@@ -282,6 +282,10 @@
      * be cloned for difference calculations.
      */
     public void adjustRecommendation(Recommendation recommendation) {
+        // XXX: THIS IS AN EVIL HACK TO MAKE W-DIFFERENCES WORK AGAIN!
+        // TODO: Throw all this code away and do it with server side recommendations!
+        recommendation.setTargetOut("w_differences");
+
         if (recommendation.getIDs() != null) {
             GWT.log("Setting staticwkms factory for rec with ID "
                 + recommendation.getIDs());

http://dive4elements.wald.intevation.org