/*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016 - 2022 Free Software Foundation
*
* 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 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.bool.BaseBooleanValidator;
/**
- * A validator for privacy and terms checkboxes
+ * A validator for privacy and terms check boxes
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
-@FacesValidator (value = "PrivacyTermsCheckboxValidator")
-public class JobsPrivacyTermsCheckboxValidator extends BaseBooleanValidator implements Validator {
+@FacesValidator ("PrivacyTermsCheckboxValidator")
+public class JobsPrivacyTermsCheckboxValidator extends BaseBooleanValidator {
/**
* Serial number
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
- // Trace message
- //* 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 = {"privacy", "terms"}; //NOI18N
+ final String[] requiredFields = {"privacy", "terms"}; //NOI18N
// Pre-validation (example: not null, not a string, empty string ...)
super.preValidate(context, component, value, requiredFields, false);
-
- // Trace message
- //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N
}
+
}