From ac33815e779eaa0acc733f7c7d7662bad9cefb01 Mon Sep 17 00:00:00 2001 From: Susana Montes Pedreira Date: Tue, 2 Mar 2010 10:30:02 +0100 Subject: [PATCH] ValidacionEProbasFuncionaisItEr48S04: Fixes the constraint messages of the max value and the precision value. --- .../web/advance/AdvanceTypeCRUDController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/navalplanner-webapp/src/main/java/org/navalplanner/web/advance/AdvanceTypeCRUDController.java b/navalplanner-webapp/src/main/java/org/navalplanner/web/advance/AdvanceTypeCRUDController.java index bab7a2e8f..972d3301f 100644 --- a/navalplanner-webapp/src/main/java/org/navalplanner/web/advance/AdvanceTypeCRUDController.java +++ b/navalplanner-webapp/src/main/java/org/navalplanner/web/advance/AdvanceTypeCRUDController.java @@ -107,13 +107,13 @@ public class AdvanceTypeCRUDController extends GenericForwardComposer { throws WrongValueException { if (((BigDecimal) value) == null) { throw new WrongValueException(comp, - _("Value is not valid, the default max value must not be null")); + _("Value is not valid, the precision value must not be empty")); } if (!(advanceTypeModel.isPrecisionValid((BigDecimal) value))) { throw new WrongValueException( comp, - _("Value is not valid, the Precision value must be less than the defalt max value and not null")); + _("Value is not valid, the Precision value must be less than the defalt max value.")); } } }; @@ -127,13 +127,13 @@ public class AdvanceTypeCRUDController extends GenericForwardComposer { throws WrongValueException { if (((BigDecimal) value) == null) { throw new WrongValueException(comp, - _("Value is not valid, the Precision value must not be null ")); + _("Value is not valid, the default max value must not be empty ")); } if (!(advanceTypeModel .isDefaultMaxValueValid((BigDecimal) value))) { throw new WrongValueException( comp, - _("Value is not valid, the Precision value must be less than the defalt max value ")); + _("Value is not valid, the default max value must be greater than the precision value ")); } } };