Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

jquery conflict problem #1

Open
blue-farid opened this issue Dec 4, 2021 · 2 comments
Open

jquery conflict problem #1

blue-farid opened this issue Dec 4, 2021 · 2 comments

Comments

@blue-farid
Copy link

hey! =)
I was looking for a jsf jalali calendar, so I found yours.
I tested project in a empty web app project, It works fine.
but I want add this in a real project (a spring boot web application) that uses primefaces components too.
It should not be a problem, but the page does not load at all!
there is no exeption, but I see some errors in browser console. here is the error:

Uncaught TypeError: this.jq.layout is not a function
at c._render (layout.js.do?ln=primefaces&v=8.0:2)
at c.renderDeferred (core.js.do?ln=primefaces&v=8.0:22)
at c.init (layout.js.do?ln=primefaces&v=8.0:2)
at c.e. [as init] (core.js.do?ln=primefaces&v=8.0:22)
at new c (core.js.do?ln=primefaces&v=8.0:22)
at Object.createWidget (core.js.do?ln=primefaces&v=8.0:16)
at Object.cw (core.js.do?ln=primefaces&v=8.0:16)
at HTMLDocument. (passwordOperation.do:775)
at o (pfaces.js.do?ln=pfaces:2)
at Object.fireWith (pfaces.js.do?ln=pfaces:2)

could you please help me if have an Idea? I searched for a long time but I did not find the solution.
thanks!

@omidp
Copy link
Owner

omidp commented Dec 6, 2021

Hi,

Which version of Primefaces you are using ? it should work with primefaces 6.1 .
Latest version of Primefaces is using different jQuery library as a result I think there are conflicts .

Please check this project for Spring boot and Primefaces configuration if you want deploy your project as war .

Please check this project for Spring boot and Primefaces configuration if you want deploy your project as jar .

And check this project to use custom primefaces for datepicker.

@blue-farid
Copy link
Author

yes It is the latest version, I am using primefaces 8.0
thank you for your help. I will try this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants