protected Object parseText(IFormComponent field, ValidationMessages messages, String text) throws ValidatorException { try { return new BigDecimal(text); } catch (NumberFormatException e) { throw new ValidatorException(buildMessage(messages, field, ValidationStrings.INVALID_NUMBER), ValidationConstraint.NUMBER_FORMAT); } } }
protected Object parseText(IFormComponent field, ValidationMessages messages, String text) throws ValidatorException { try { return new BigDecimal(text); } catch (NumberFormatException e) { throw new ValidatorException(buildMessage(messages, field, ValidationStrings.INVALID_NUMBER), ValidationConstraint.NUMBER_FORMAT); } } }