-Dorg.apache.el.parser.COERCE_TO_ZERO for glass fish?

Do we have something like -Dorg.apache.el.parser.COERCE_TO_ZERO for glass fish?

+4
source share
1 answer

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.

+5
source

Source: https://habr.com/ru/post/1392005/


All Articles