]> git.mxchange.org Git - jcoreee.git/commitdiff
Some improvements
authorRoland Haeder <roland@mxchange.org>
Thu, 3 Sep 2015 13:32:47 +0000 (15:32 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 3 Sep 2015 13:32:47 +0000 (15:32 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jsfcore/validator/BaseObjectValidator.java
src/org/mxchange/jsfcore/validator/string/names/NameValidator.java

index bdaee17a289356942a1efdc8905aac0746e1bbbd..4c7e8fbd986c2481d0c8f00f0241c608128d9448 100644 (file)
@@ -56,7 +56,7 @@ public abstract class BaseObjectValidator extends BaseFrameworkSystem implements
                // Is it set?
                if (null == this.getBundle()) {
                        // Set it now
-                       setBundle(ResourceBundle.getBundle("org.mxchange.localization.messages", context.getViewRoot().getLocale()));
+                       setBundle(ResourceBundle.getBundle("org.mxchange.localization.bundle", context.getViewRoot().getLocale()));
                }
        }
 
index 4186545492cc8301c97ce1c0acc77c965134771d..0994ab4d4dcbc8eb71419bf5e668752a387673ad 100644 (file)
@@ -35,7 +35,7 @@ public class NameValidator extends BaseStringValidator implements Validator {
                this.getLogger().trace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
 
                // All accepted, required fields
-               String[] requiredFileds = {"firstName", "familyName"}; //NOI18N
+               String[] requiredFileds = {"firstName", "familyName", "city", "street"}; //NOI18N
 
                // Pre-validation (e.g. not null, not a string, empty string ...)
                super.preValidate(context, component, value, requiredFileds);