PF7 calendar validation error

UI Components for JSF
Post Reply
giorgio.primefaces
Posts: 64
Joined: 19 Apr 2011, 11:43

16 May 2019, 10:24

I just discovered that with PF7 (test made with PF 7.0.2) all my calendars with mindate=value (didn't test maxdate) I get the following validation error:
"Validation Error: Value is out of range."


here's a sample code working with PF 6.x.x

Code: Select all

 <p:calendar id="per2e" value="#{bean.data}"
             maxdate="#{bean.dataMax}"
             mindate="#{bean.dataMin}"
             pattern="dd/MM/yyyy"  navigator="true"
             showOn="button"  />
Image
whenever mindate has the same value as value of the calendar it throws the validation error, any workaround?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

16 May 2019, 13:08

I would report and issue with a working test case to the issues page: https://github.com/primefaces/primefaces/issues

A workaround might be to subtract 1 millisecond from your mindate?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

giorgio.primefaces
Posts: 64
Joined: 19 Apr 2011, 11:43

16 May 2019, 17:21

done, submitted ticket #4813

actually, even if that workaround may solve, that's not an option in my application (too many pages to fix)
for the moment I did a rollback to 6.2.20

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 19 guests