Liferay: jQuery not found when upgrading from 7.0 to 13.0.1 #2521
Unanswered
Sumair2000
asked this question in
PrimeFaces
Replies: 1 comment 7 replies
-
why are you including jquery on your page when PrimeFaces already includes it? Sounds like you have a jQuery version conflict. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have recently upgraded the PrimeFaces version from 7 to 13.0.1 and resolved the breaking changes. The portlets are working fine individually. However, when I place two PrimeFaces portlets on a single page. In each portlet, I have a javascript_include.xhtml file where I'm creating an alias for jQuery using noConflict, and this file is invoked in the header. Below is the code for each separate PrimeFaces portlet:
Including javascript_include.xhtml in the header:
Portlet 1 javascript_include.xhtml:
Portlet 2 javascript_include.xhtml:
When I place only one portlet on the page, it works fine, and there are no issues in the browser console. However, when I place another portlet on the same page, I encounter console errors like jQuery_f_d not found, announcements_f not found, and jQuery_ns_connect not found. Additionally, errors are appearing with PrimeFaces components, such as the date picker not functioning properly.
What could be the main issue, and what are your suggestions?
Beta Was this translation helpful? Give feedback.
All reactions