开发者

<rich:calendar> loses datePattern after validation

开发者 https://www.devze.com 2023-03-11 10:20 出处:网络
I have a <rich:calendar> like this: <rich:calendar enableManualInput=\"true\" value=\"#{home.instance.data}\" datePattern=\"dd/MM/yyyy\">

I have a <rich:calendar> like this:

<rich:calendar enableManualInput="true" value="#{home.instance.data}" datePattern="dd/MM/yyyy">

When I enter a date like 39/19/9999, then the <rich:calendar> shows a message:

Invalid Date

Till here it's ok. The problem starts when I erase my field and try to enter a new date. It does not validate on the datePattern anymore and I can type number and letters.

How is开发者_如何学编程 this caused and how can I solve it?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号