Error component p:calendar PF 6.2.30

UI Components for JSF
Post Reply
wbss
Posts: 6
Joined: 27 Apr 2013, 10:57

20 Jul 2021, 11:57

Hello, a customer reported me an error on the calendar component: it did not allow you to select a date from the popup on PF 6.2.30. I was unable to reproduce the error, but I noticed that the following error is reported in the browser console, can someone help me?

Code: Select all

VM1386:169 Uncaught TypeError: Cannot read property 'settings' of undefined
    at ac._get (<anonymous>:169:24446)
    at ac._findPos (<anonymous>:169:16195)
    at HTMLAnchorElement.updateDatePickerPosition (<anonymous>:393:1096)
    at HTMLAnchorElement.<anonymous> (<anonymous>:393:1421)
    at <anonymous>:2:1540
    at Function.map (<anonymous>:2:3509)
    at S.fn.init.map (<anonymous>:2:1508)
    at ac.$.datepicker._attachHandlers (<anonymous>:393:342)
    at ac._updateDatepicker (<anonymous>:169:14553)
    at <anonymous>:393:3227
_get @ VM1386:169
_findPos @ VM1386:169
updateDatePickerPosition @ VM1327:393
(anonymous) @ VM1327:393
(anonymous) @ VM1326:2
map @ VM1326:2
map @ VM1326:2
$.datepicker._attachHandlers @ VM1327:393
_updateDatepicker @ VM1327:169
(anonymous) @ VM1327:393
setTimeout (async)
$.datepicker._updateDatepicker @ VM1327:393
_showDatepicker @ VM1327:169
(anonymous) @ VM1327:169
dispatch @ VM1326:2
v.handle @ VM1326:2
Thanks,
Alessandro
  • Payara 5.2021.4
  • JSF 2.3.2
  • PF 6.2.30
  • Firefox 90.0.1
  • Netbeans 12.4

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

20 Jul 2021, 14:27

What happens if you back up to 6.2.29 or 6.2.28 and keep going until you don't see that console error? Most likely its a bug introduced in the Elite 6.2.30.
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

wbss
Posts: 6
Joined: 27 Apr 2013, 10:57

22 Jul 2021, 12:42

Hello,
i restore the PF 6.2.25 that i was using before and i notice that the error it's still there on the file of jQuery UI Datepicker 1.12.1 (the source script file for view the error lines is https://pastebin.com/ugzLmdrU):

Code: Select all

VM752:formatted:5511 Uncaught TypeError: Cannot read property 'settings' of undefined
    at ac._get (<anonymous>:169:24429)
    at ac._findPos (<anonymous>:169:16178)
    at HTMLAnchorElement.updateDatePickerPosition (<anonymous>:393:1096)
    at HTMLAnchorElement.<anonymous> (<anonymous>:393:1421)
    at <anonymous>:2:1089
    at Function.map (<anonymous>:2:3309)
    at r.fn.init.map (<anonymous>:2:1057)
    at ac.$.datepicker._attachHandlers (<anonymous>:393:342)
    at ac._updateDatepicker (<anonymous>:169:14536)
    at <anonymous>:393:3227
_get @ VM752:formatted:5511
_findPos @ VM752:formatted:5101
updateDatePickerPosition @ VM697:393
(anonymous) @ VM697:393
(anonymous) @ VM696:2
map @ VM696:2
map @ VM696:2
$.datepicker._attachHandlers @ VM697:393
_updateDatepicker @ VM697:169
(anonymous) @ VM697:393
setTimeout (async)
$.datepicker._updateDatepicker @ VM697:393
_showDatepicker @ VM697:169
(anonymous) @ VM697:169
dispatch @ VM696:3
q.handle @ VM696:3
  • Payara 5.2021.4
  • JSF 2.3.2
  • PF 6.2.30
  • Firefox 90.0.1
  • Netbeans 12.4

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

22 Jul 2021, 13:43

Ahh OK. Unless you have PRO support I will doubt this will be fixed in the 6.2 branch since that is now 2 major versions behind. YOu could see if the same error persists in 7.x 8.x or 10.x versions?
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests