Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java @ 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 | 3999162f474f |
children | 5dfb3ff98bc6 |
comparison
equal
deleted
inserted
replaced
7562:22b5d1c6e2c0 | 7563:04cc2dee911e |
---|---|
280 /** | 280 /** |
281 * Set factory of recommendation such that the correct artifacts will | 281 * Set factory of recommendation such that the correct artifacts will |
282 * be cloned for difference calculations. | 282 * be cloned for difference calculations. |
283 */ | 283 */ |
284 public void adjustRecommendation(Recommendation recommendation) { | 284 public void adjustRecommendation(Recommendation recommendation) { |
285 // XXX: THIS IS AN EVIL HACK TO MAKE W-DIFFERENCES WORK AGAIN! | |
286 // TODO: Throw all this code away and do it with server side recommendations! | |
287 recommendation.setTargetOut("w_differences"); | |
288 | |
285 if (recommendation.getIDs() != null) { | 289 if (recommendation.getIDs() != null) { |
286 GWT.log("Setting staticwkms factory for rec with ID " | 290 GWT.log("Setting staticwkms factory for rec with ID " |
287 + recommendation.getIDs()); | 291 + recommendation.getIDs()); |
288 recommendation.setFactory("staticwkms"); | 292 recommendation.setFactory("staticwkms"); |
289 } | 293 } |