]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/validator/names/JobsNameValidator.java
no need for value='' here, only the pure value is okay
[jjobs-war.git] / src / java / org / mxchange / jjobs / validator / names / JobsNameValidator.java
index 5c7b9726b926ee83bec6c1928ba0fd41cd843717..507b45b65b7e3eda89f8609d04ea8816751ef66a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Roland Haeder
+ * Copyright (C) 2016 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,11 +24,11 @@ import javax.faces.validator.ValidatorException;
 import org.mxchange.jcoreee.validator.string.BaseStringValidator;
 
 /**
- * A validation class for addressbook names, such as first name or family name.
+ * A validation class for jjobs names, such as first name or family name.
  * <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Häder<roland@mxchange.org>
  */
-@FacesValidator (value = "AddressbookNameValidator")
+@FacesValidator ("NameValidator")
 public class JobsNameValidator extends BaseStringValidator implements Validator {
 
        /**
@@ -42,7 +42,7 @@ public class JobsNameValidator extends BaseStringValidator implements Validator
                //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
 
                // All accepted, required fields
-               String[] requiredFields = {"addressbookName"}; //NOI18N
+               String[] requiredFields = {"firstName", "familyName", "city", "street", "addressbookName"}; //NOI18N
 
                // Pre-validation (example: not null, not a string, empty string ...)
                super.preValidate(context, component, value, requiredFields, false);