[richfaces-issues] [JBoss JIRA] (RF-12833) richfaces.js conflicts with prototype.js
Mark Torres (JIRA)
jira-events at lists.jboss.org
Mon Mar 18 10:59:43 EDT 2013
[ https://issues.jboss.org/browse/RF-12833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761599#comment-12761599 ]
Mark Torres commented on RF-12833:
----------------------------------
Hi Juraj,
I don't remember setting the assigned attribute. Perhaps it got assigned when you took the issue on Tues(see history).
I did search the forums before filing this issue.
Correct me if I'm wrong but here's my understanding...
You can use the standard way of using jQuery.noConflict()/script ordering[http://docs.jquery.com/Using_jQuery_with_Other_Libraries], to make it compatible with prototype.
jQuery calls within richfaces, are "scoped" using self-invoking anonymous function(RF-11881).
However, in richfaces.js, the use of self-invoking is incorrect. It should be
(function($, richfaces) {
....
This causes javascript error on richfaces.js when jQuery.noConflict() is on a page.
> richfaces.js conflicts with prototype.js
> ----------------------------------------
>
> Key: RF-12833
> URL: https://issues.jboss.org/browse/RF-12833
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.1
> Reporter: Mark Torres
>
> Getting some javascript errors on richfaces.js.
> Upon inspection, it is using
> (function(jQuery, richfaces) {
> ...
> instead of
> (function($, richfaces) {
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list