I am experimenting with java server faces and I am trying to understand better how the validation process works. My question is as follows:
Is it possible to keep the validation process in one validator class for several fields?
Say I have two fields in the duke guess number example:
One called "userNumber" (type Integer) and another called "name"(String). I want a custom validation for each of those two fields. For instance the first validation checks that userNumber does not exceed 100 and the second validation checks that the name string does not contain numbers.
Can I keep these two validations within one validator class?