I have a backing bean where filelds are Long , Double , Integer , String
When I am not specifying anything in input field it is taking as zero for Long, Integer and Double instead of null. I am using tomcat to deploy my app. Is there any solution? I have tried the following context parameter, but it does not work.
<context-param>
<param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
<param-value>true</param-value>
</context-param>
Add the following VM argument to Tomcat startup options.
You also need to ensure that you’ve declared
faces-config.xmlconform the JSF 2.0 specification.Otherwise JSF 2.0 specific settings/features won’t be activated.