PrimeFaces 6.0 Calendar JS Console Error Messages
See original GitHub issueHello,
When I enter a date in the p:calendar with mask via keyboard, some JS messages pop in browser console.
Error parsing the date string: Extra/unparsed characters found in date: ___
date string = 15-07-2___
date format = dd-mm-yy
jquery-plugins.js.xhtml?ln=primefaces&v=6.0.1:317 Error parsing the date string: Extra/unparsed characters found in date: ___
date string = 15-07-2___
date format = dd-mm-yy
jquery-plugins.js.xhtml?ln=primefaces&v=6.0.1:317 Error parsing the date string: Extra/unparsed characters found in date: __
date string = 15-07-20__
date format = dd-mm-yy
jquery-plugins.js.xhtml?ln=primefaces&v=6.0.1:317 Error parsing the date string: Extra/unparsed characters found in date: __
date string = 15-07-20__
date format = dd-mm-yy
jquery-plugins.js.xhtml?ln=primefaces&v=6.0.1:317 Error parsing the date string: Extra/unparsed characters found in date: _
date string = 15-07-201_
date format = dd-mm-yy
jquery-plugins.js.xhtml?ln=primefaces&v=6.0.1:317 Error parsing the date string: Extra/unparsed characters found in date: _
date string = 15-07-201_
date format = dd-mm-yy
More info:
PrimeFaces version: 6.0 (I only tested in this version)
Browsers: Chrome 51.0.2704.103 m Firefox 47.0.1
How to reproduce: Enter date via keyboard in a p:calendar with mask
This error can be reproduced in showcase: http://primefaces.org/showcase/ui/input/calendar.xhtml
Enter a date in the “Mask” field.
Problems: Even with these JS error messages, the p:calendar component seems to be working normally (the dates are correctly submitted).
P.S.: I dunno if this situation was reported already, but I searched in the Github issues and PrimeFaces forum, and I could find anything about it, so I’m reporting.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
PrimeFaces 6.0 Calendar JS Console Error Messages
Enter a date in the "Mask" field. Problems: Even with these JS error messages, the p:calendar component seems to be working normally (the...
Read more >Developers - PrimeFaces 6.0 Calendar JS Console Error Messages -
When I enter a date in the p:calendar with mask via keyboard, some JS messages pop in browser console. Error parsing the date...
Read more >Modified locale message of PrimeFaces is not working
I already check the widget of calendar in web console and the changes is already there. But still it uses the default message....
Read more >JavaScript and jQuery by Examples
Let's look into an input validation function isNotEmpty() in details. It takes 3 arguments, an input element, an error message, and an error...
Read more >Primefaces Message, Messages & Growl components ...
Typically, messages used for displaying information, errors, warnings and so on. Primefaces like all of jsf implementations, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can reproduce it, as @julianomqs said, with a p:calendar on PrimeFaces 6.0, and even in the showcase.
Steps to reproduce:
I can reproduce the errors with
As I understand, it could be a problem in the way that PrimeFaces uses the jquery datepicker
Hello, I tested with 6.2-SNAPSHOT cloned right now and the problem does not reproduce anymore.
I was planning a migration from 5.3 to 6.1 but now I will wait until 6.2.