From: Roland Haeder Date: Mon, 14 Sep 2015 08:39:18 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6f558dd6dc64dad7c7dec49257decc4c403ed26;p=jcore-utils.git Continued: - amount validator is a long value validator - all message keys are UPPER_CASE - updated jar Signed-off-by:Roland Häder --- diff --git a/lib/jcore-ee-logger.jar b/lib/jcore-ee-logger.jar index 6d0e98c..9631578 100644 Binary files a/lib/jcore-ee-logger.jar and b/lib/jcore-ee-logger.jar differ diff --git a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java index b245656..59871c3 100644 --- a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java @@ -53,7 +53,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { // Compare value's type if (!(value instanceof String)) { // Value is empty - errKey = String.format("error_%s_is_not_string", field); //NOI18N + errKey = String.format("ERROR_%s_IS_NOT_STRING", field.toUpperCase()); //NOI18N facesMessage = new FacesMessage(getMessageStringFromKey(errKey)); } @@ -64,7 +64,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { // Is it empty? if (str.isEmpty()) { // Value is empty - errKey = String.format("error_%s_is_empty", field); //NOI18N + errKey = String.format("ERROR_%s_IS_EMPTY", field.toUpperCase()); //NOI18N facesMessage = new FacesMessage(getMessageStringFromKey(errKey)); }