Reputation: 1424
I'm getting the following error on using calendar component: Uncaught TypeError: Object # has no method 'datepicker' This problem is coming in primefaces.js (PrimeFaces.widget.Calendar).
The code is:
<p:column id="startDate">
<p:calendar value="#{article.startDate}" mode="inline"
id="inlineCal" pattern="MM/dd/yyyy">
<f:convertDateTime pattern="MM/dd/yyyy" />
</p:calendar>
</p:column>
What could be the possible issues ?
Thanks, Shikha
Upvotes: 1
Views: 1278
Reputation: 81
In my case
jQuery.noConflict();
on the onload event has helped.
Upvotes: 0
Reputation: 6383
Came across the same problem: "Uncaught TypeError: Object # has no method 'datepicker'". Looking for cure I stumbled upon this question.
But in my case it turned out to be a "simple" browser caching problem of the jquery.js when I downgraded from primefaces 3.5 to 3.4.2.
Some primefaces javascript was not compatible with the jquery.js then. I have not further investigated which (primefaces js or jquery js) was cached and which one was updated.
Clearing the cache solved it. Mabye this helps someone else in the future.
Upvotes: 0
Reputation: 1424
As Daniel pointed out, Jquery library was included explicitly. thereby causing conflicts.
Upvotes: 2