p:calendar does not allow the form submit when the date value is wrong

旧城冷巷雨未停 提交于 2019-12-13 06:34:58

问题


I have used the PrimeFaces date selector like the following

<p:calendar id="endDate" styleClass="dateWidth" mask="99/99/9999" 
value="#{xxController.endDate}" showOn="button" pattern="MM/dd/yyyy">
<p:watermark  value="MM/DD/YYYY" for="endDate" />
</p:calendar>

This works fine and submits the form when the date is valid or even empty but the form is not getting submitted when i try with values like 99/99/9999

Could someone help me on this please?

I am using PrimeFaces 6.2.

来源:https://stackoverflow.com/questions/54493832/pcalendar-does-not-allow-the-form-submit-when-the-date-value-is-wrong

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!