]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - src/org/mxchange/addressbook/validator/names/AddressbookNameValidator.java
updated jar(s) + fixed #tpyo
[jfinancials-lib.git] / src / org / mxchange / addressbook / validator / names / AddressbookNameValidator.java
index 15ef2bcd63129e4307097599ac218842f84cde60..0f883816d007a0acd66122e79fc6d8104c028441 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 {
 
        /**
@@ -40,10 +42,10 @@ public class AddressbookNameValidator extends BaseStringValidator implements Val
                //this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
 
                // All accepted, required fields
-               String[] requiredFileds = {"addressbookName"}; //NOI18N
+               String[] requiredFields = {"addressbookName"}; //NOI18N
 
-               // Pre-validation (e.g. not null, not a string, empty string ...)
-               super.preValidate(context, component, value, requiredFileds);
+               // Pre-validation (example: not null, not a string, empty string ...)
+               super.preValidate(context, component, value, requiredFields, false);
 
                // Trace message
                //this.getLogger().logTrace("validate: EXIT!"); //NOI18N