We are using a h:inputText
in a JSF page which is bound to an Integer
property (and thus can accept null
). When there is no value written in the h:inputText
, the form is submitting a 0
instead of null
. We are using Trinidad 1.2.2 and Tomcat 6.0.20 (we also tried with Tomcat 6.0.14 as we read that this could happen with certains Tomcat versions).
How is this caused and how can I solve it?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…