Convert empty number as null
问题 is there a possibility to tell my JSF-implementation to convert empty numbers as null. So far I always get 0 (of the corresponging complex-type). For empty strings there is javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL , but I couldn't find anything for numbers. By the way: No, I can't use the vm-argument: -Dorg.apache.el.parser.COERCE_TO_ZERO=false Is a custom-numberconverter my only possibility? 回答1: No, I can't use the vm-argument: -Dorg.apache.el.parser.COERCE_TO_ZERO=false