diff --git a/modules/qi-core/src/main/java/org/jpos/qi/util/FieldFactory.java b/modules/qi-core/src/main/java/org/jpos/qi/util/FieldFactory.java index abc2285a2c..076fef4300 100644 --- a/modules/qi-core/src/main/java/org/jpos/qi/util/FieldFactory.java +++ b/modules/qi-core/src/main/java/org/jpos/qi/util/FieldFactory.java @@ -190,9 +190,9 @@ public List getValidators(String propertyId) { return null; } if (regex != null) - validators.add(new RegexpValidator(getApp().getMessage("errorMessage.invalidField", getApp().getMessage(propertyId)),regex)); + validators.add(new RegexpValidator(getApp().getMessage("errorMessage.invalidField", getApp().getMessage("field." + propertyId)),regex)); if (length > 0) - validators.add(new StringLengthValidator(getApp().getMessage("errorMessage.invalidField", getApp().getMessage(propertyId)),0,length)); + validators.add(new StringLengthValidator(getApp().getMessage("errorMessage.invalidField", getApp().getMessage("field." + propertyId)),0,length)); if ("email".equals(propertyId)) { validators.add(new EmailValidator(getApp().getMessage("errorMessage.invalidEmail")) { @Override