Calendar error in Performs 5.0

When I use the calendar, I set "timeOnly" to "true", "pattern" is "HH: mm a".

When the input time is greater than or equal to "13:00 pm", every time the calendar receives focus, it will

automatically change the time to "23:00 pm". I have the same error from the showcase

at http://www.primefaces.org/showcase/ui/input/calendar.xhtml .

What should I do to resolve this error when using the calendar?

+3


source to share


1 answer


The 13:00 pm time does not exist, it must be 13:00. This is not a mistake, this is probably a typo. Set the template to "hh: mm a". It works in my case.



<p:calendar id="time" value="#{bean.date}" pattern="hh:mm a" timeOnly="true"  />

      

0


source







All Articles