1 of 1 people found this helpful
1) '$' is used by prototype.js, use 'jQuery'
2) You need to call jQuery.noConflict(), so that it won't conflict with prototype.js.
I used jQuery.noConflict(); after that prototype.js is working but loaded script is not.
Are you using 'jQuery' instead of '$'?
Thanks, It works. I used '$' instead of jQuery by mistake.
I just use
it works. my richfaces is 3.3.3 and draw a alert is 1.3.2.
I want to know when you add a new version to your project, does it work well on ie?
I gain many errors and exceptions from the new jQuery version, since the richfaces use the old one.
How to solve it on 3.3.3 and which jQuery version will be used in richfaces4?
Thank you all very much!
RF 4 uses the latest one (1.4.4).
There are some significant changes between 1.3 & 1.4 jQuery versions, so some 3.x widgets can break after upgrade. What errors does IE show and how are you upgrading it - replacing jquery.js in RF .jar or smth. other?
Thanks for your reply. It's useful!
what i did is:
add the declaration and noconflection in template.xhtml which is jsf template file in our project.
And, I had never changed any code from richfaces3.3.3 -- our project depends on its jars by using maven(pom.xml).
Then, save and run.
There is no problem on other browsers, excluding ie -- my env. is ie8.
And the errors come from richfaces3.3.3 and jQuery1.4.4, which said approximately "something is null or not object".
Finally, I remove the new version reference, and I think it must has other jQuery version in my project(At that time, I was not sure richfaces included jQuery).
Save and test it, and it works well.
By the way, I want to ask you another question:
Does richfaces3.3.3 use jQuery only one version--1.3.2 or use many different versions in different package(ui component,api or impl).
Hi Nick Belaevski,
Since we decide to stand on rf3.3.3 and don't migrate to rf4.0, It's still a puzzle that upgrading jQuery version in rf.
How can I just upgrade jQuery from 1.3.2 to 1.4(or 1.5.1) in richfaces3.3.3?
Or if it's clear that no way to do this, please tell me why.
This is an urgent question, anyone if you know the solution, please reply me soon.
Thanks a lot!