/*
- * 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
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 {
/**
//* 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);