]> git.mxchange.org Git - jcoreee.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 08:39:18 +0000 (10:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 08:39:18 +0000 (10:39 +0200)
- amount validator is a long value validator
- all message keys are UPPER_CASE
- updated jar
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore-ee-logger.jar
src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java

index 6d0e98ca34bb9da22fe71b465ba1765a785a8053..9631578315fa23cab8f95f90e90b3013588b16ea 100644 (file)
Binary files a/lib/jcore-ee-logger.jar and b/lib/jcore-ee-logger.jar differ
index b24565631f8c654917569c9e8b2ef2348936683b..59871c345fd772039a72513cd14a3023cf674f3a 100644 (file)
@@ -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));
                                }