/*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2020 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
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
// All accepted, required fields
- String[] requiredFields = {"birthday", "contactBirthday"}; //NOI18N
+ final String[] requiredFields = {"birthday", "contactBirthday"}; //NOI18N
// Pre-validation (example: not null, not a string, empty string ...)
super.preValidate(context, component, value, requiredFields, false);
// Cast value
- Date birthday = (Date) value;
+ final Date birthday = (Date) value;
// @TODO Finish this, e.g. load maximum,minimum birthday from properties file
}