ValidacionEProbasFuncionaisItEr48S04: Fixes the constraint messages of the max value and the precision value.

This commit is contained in:
Susana Montes Pedreira 2010-03-02 10:30:02 +01:00 committed by Javier Moran Rua
parent 12ae5a6bf9
commit ac33815e77

View file

@ -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 "));
}
}
};