Hi,
are mindate and maxdate options working with selectionMode="range"? I can't get datePicker working if I use those options
Thanks
Best regards
DatePicker - mindate and maxdate with selectionMode=range
Test:
#{calendarView.minDate} and #{calendarView.maxDate} are not null
Result: It shows javascript errors
Conclusion:
It works fine if I don't use mindate or maxdate option.
Code: Select all
<h:form id="form">
<p:datePicker id="minmax" selectionMode="range" value="#{calendarView.dates}" mindate="#{calendarView.minDate}" maxdate="#{calendarView.maxDate}" />
</h:form>
Result: It shows javascript errors
Conclusion:
It works fine if I don't use mindate or maxdate option.
Something very similar is happening with selectionMode="range" and disabledDates option. Without selectionMode="range" disabledDates works fine, but with selectionMode="range" it shows javascript errors
TypeError: e.getFullYear is not a function[Saber más] datepicker.js.xhtml;jsessionid=A34D0552570D0136F4120B0EE7498562:1:7385
isDateDisabled
http://localhost:8080/test/javax.faces. ... 562:1:7385
K.widget/</ai[aq]</<
http://localhost:8080/test/javax.faces. ... 62:14:1099
isSelectable
http://localhost:8080/test/javax.faces. ... 562:1:5755
K.widget/</ai[aq]</<
http://localhost:8080/test/javax.faces. ... 62:14:1099
createMonth
http://localhost:8080/test/javax.faces. ... 562:1:4402
K.widget/</ai[aq]</<
http://localhost:8080/test/javax.faces. ... 62:14:1099
createMonths
http://localhost:8080/test/javax.faces. ... 562:1:3910
K.widget/</ai[aq]</<
http://localhost:8080/test/javax.faces. ... 62:14:1099
since you have a reproducible test case I suggest reporting it on GitHub Issues page.
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
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Fixed for next version. Thanks a lot!
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks a lot for the update!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 59 guests