Do we have anything like -Dorg.apache.el.parser.COERCE_TO_ZERO for glassfish also?
No. Glassfish uses a different EL implementation which behaves by default already the same as when you would set -Dorg.apache.el.parser.COERCE_TO_ZERO
to false
on Tomcat and clones.
Perhaps you're 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 on Tomcat and clones and well if your intent is to let JSF set empty string submitted values as null
instead of 0
on primitive wrapper properties like Long
, Integer
, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With