]> git.mxchange.org Git - addressbook-lib.git/blobdiff - src/org/mxchange/addressbook/validator/names/AddressbookNameValidator.java
Updated copyright year
[addressbook-lib.git] / src / org / mxchange / addressbook / validator / names / AddressbookNameValidator.java
index 67007bb0c5cdaed23a957314c2ff922d7aca743b..06cfa41273f4588a7c654d2e98af37b3f84fc405 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 Roland Haeder
  *
  * 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
@@ -18,6 +18,7 @@ package org.mxchange.addressbook.validator.names;
 
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
+import javax.faces.validator.FacesValidator;
 import javax.faces.validator.Validator;
 import javax.faces.validator.ValidatorException;
 import org.mxchange.jcoreee.validator.string.BaseStringValidator;
@@ -27,6 +28,7 @@ import org.mxchange.jcoreee.validator.string.BaseStringValidator;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
+@FacesValidator (value = "AddressbookNameValidator")
 public class AddressbookNameValidator extends BaseStringValidator implements Validator {
 
        /**
@@ -43,7 +45,7 @@ public class AddressbookNameValidator extends BaseStringValidator implements Val
                String[] requiredFileds = {"addressbookName"}; //NOI18N
 
                // Pre-validation (example: not null, not a string, empty string ...)
-               super.preValidate(context, component, value, requiredFileds);
+               super.preValidate(context, component, value, requiredFileds, false);
 
                // Trace message
                //this.getLogger().logTrace("validate: EXIT!"); //NOI18N