Page 1 of 1

PF7 calendar validation error

Posted: 16 May 2019, 10:24
by giorgio.primefaces
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?

Re: PF7 calendar validation error

Posted: 16 May 2019, 13:08
by Melloware
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?

Re: PF7 calendar validation error

Posted: 16 May 2019, 17:21
by giorgio.primefaces
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