comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstWQPanel.java @ 9292:e6958f0e72fa

bundu.bezugswst details
author gernotbelger
date Tue, 24 Jul 2018 15:30:10 +0200
parents 3729434f6dec
children e3e465766cfe
comparison
equal deleted inserted replaced
9291:913bc7d1d2a8 9292:e6958f0e72fa
247 } else if (getMode().equals(mode.UD.toString())) { 247 } else if (getMode().equals(mode.UD.toString())) {
248 try { 248 try {
249 if (!this.udInputItem.validate()) { 249 if (!this.udInputItem.validate()) {
250 errors.add(this.udInputItem.getRequiredMessage()); 250 errors.add(this.udInputItem.getRequiredMessage());
251 } 251 }
252 final int test = Integer.valueOf(this.udInputItem.getValueAsString());// irgendwie klappt die validator-validierung nur bei der eingabe von 252 final String value = this.udInputItem.getValueAsString();
253 // ganzzahlen :-( 253 if (value == null || value.isEmpty()) {
254 errors.add(this.MSG.missingInput());
255 return errors;
256 }
257 Integer.valueOf(value);// irgendwie klappt die validator-validierung nur bei der eingabe von
258 // ganzzahlen :-(
254 } 259 }
255 catch (final NumberFormatException e) { 260 catch (final NumberFormatException e) {
256 errors.add(this.MSG.error_invalid_integer()); 261 errors.add(this.MSG.error_invalid_integer());
257 } 262 }
258 } 263 }
272 } 277 }
273 278
274 int idx = 0; 279 int idx = 0;
275 280
276 final double[] values = dap.getInputValues(); 281 final double[] values = dap.getInputValues();
277 282 if (values == null) {
283 errors.add(this.MSG.missingInputs());
284 return errors;
285 }
278 final double[] good = new double[values.length]; 286 final double[] good = new double[values.length];
279 287
280 for (final double value : values) { 288 for (final double value : values) {
281 if (value <= 0) { 289 if (value <= 0) {
282 String tmp = this.MSG.error_validate_positive(); 290 String tmp = this.MSG.error_validate_positive();

http://dive4elements.wald.intevation.org