Solution to “f:validateRequired doesn’t work”
I found this problem on my JSF application running on Tomcat: the
Solution:
1) Tomcat convert null value to Zero automatically, so add this JVM option to catalina.sh: -Dorg.apache.el.parser.COERCE_TO_ZERO=false
2) JSF doesn’t validate empty field by default! Set this context parameter, javax.faces.VALIDATE_EMPTY_FIELDS, to true in web.xml