문제

I try to use the input type="date" in an xpages mobile html5 web-app.
The field is bound to a bean. The bean only gets null back. If I omit the type, I got a correct java.util.Date back.

도움이 되었습니까?

해결책

I suspect your bean is expecting a String and does an internal conversion to Date. Have a look at your setter for this field and see whether it accepts Date as a parameter.

Edit: I was wrong. The value of the field is still text in the following format. http://www.w3.org/TR/html-markup/datatypes.html#form.data.date

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top