I have just migrated to Tomcat 8. I used to work with system property org.apache.el.parser.COERCE_TO_ZERO=false
so empty strings, numbers, booleans etc. are treated as null
.
In Tomcat 8, EL 3.0, it is supposed to be the default but it is in fact converting null
string to empty string ""
on JSF side.
It is supposed to be a bug and it is supposed to be corrected but I'm not able to get it working in TomEE snapshot (Tomcat 8.0.27.0, MyFaces 2.2.8).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…