We want to restrict the second number to odd values. Since there is no standard validator for this, you will need to write your own validator. In addition, you will also need to do the following:
Register your validator in the configuration file.
Link your validator to the number2 field so it can be checked.
Execute the following steps:
Right-click the itso.jsf.calculator package
The skeleton class is generated with this method skeleton:
public void validate(FacesContext ...