Object parsedObject = format.parseObject(stringValue);
String reformatedObject = format.format(parsedObject);
result = format.parseObject(reformatedObject);
} catch(ParseException parseexception) {
String keyPath = _value.keyPath();
ERXValidationException validationexception = new ERXValidationException(ERXValidationException.InvalidValueException, parseexception, keyPath, stringValue);
component.validationFailedWithException(validationexception, stringValue, keyPath);
return;
} finally {
tsFormat.setDefaultFormatTimeZone(formatZone);
tsFormat.setDefaultParseTimeZone(parseZone);
}
}
} else {
try {
Object parsedObject = format.parseObject(stringValue);
String reformatedObject = format.format(parsedObject);
result = format.parseObject(reformatedObject);
} catch(ParseException parseexception) {
String keyPath = _value.keyPath();
ERXValidationException validationexception = new ERXValidationException(ERXValidationException.InvalidValueException, parseexception, keyPath, stringValue);
component.validationFailedWithException(validationexception, stringValue, keyPath);
return;
}
}
if(result != null && _useDecimalNumber != null && _useDecimalNumber.booleanValueInComponent(component)) {