No. Glassfish uses a different EL implementation, which by default behaves the same as if you set -Dorg.apache.el.parser.COERCE_TO_ZERO to false on Tomcat and clones.
Perhaps you are looking for the following JSF context parameter.
<context-param> <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name> <param-value>true</param-value> </context-param>
Note that the above is even required for Tomcat and clones, and itβs good if you intend to let JSF set empty strings as null instead of 0 for primitive wrapper properties like Long , Integer , etc.
source share