jsf: integer property binded to a inputtext in UI is set to zero on submit [duplicate]
This question already has an answer here: h:inputText which is bound to Integer property is submitting value 0 instead of null 1 answer I have integer properties from my bean binded to inputtext UI elements in jsp pages. initially when they are rendered, default value of this integer properties is null. Now when i am submitting the form without changing this inputtext fields, this fields are set to integer value zero in bean, even though ui text field is blank. As i want to track the changes to fields and update only those fields which are changed in configuration files, but this is giving me