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) Closed 4 years ago . 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