[richfaces-issues] [JBoss JIRA] (RF-12833) richfaces.js conflicts with prototype.js

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Apr 16 03:48:53 EDT 2013


    [ https://issues.jboss.org/browse/RF-12833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767418#comment-12767418 ] 

Lukáš Fryč edited comment on RF-12833 at 4/16/13 3:46 AM:
----------------------------------------------------------

The real problem is that inside richfaces.js module, there is two sorts of referenced to jQuery used: {{$}} and {{jQuery}}.
We need to unify them at the first place.

The reason why I hesitate to use {{$}} is that RichFaces itself defines [{{$}} reference internally as well|https://github.com/richfaces/richfaces5/blob/master/framework/src/main/resources/META-INF/resources/richfaces.js#L67]. Even though it's namespaced I can see that like a reason why {{jQuery}} variable name was used instead of {{$}} originally.
                
      was (Author: lfryc):
    The real problem is that inside richfaces.js module, there is two sorts of referenced to jQuery used: {{$}} and {{jQuery}}.
We need to unify them at the first place.

The reason why I hesitate to use {{$}} is that RichFaces itself defines [{{$}} reference internally as well|https://github.com/richfaces/richfaces5/blob/master/framework/src/main/resources/META-INF/resources/richfaces.js#L67]. Even though it's namespace I can see that like a reason why {{jQuery}} variable name was used instead of {{$}} originally.
                  
> 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) 
>          Components: component-a4j-core
>    Affects Versions: 4.3.1
>            Reporter: Mark Torres
>             Fix For: 5-Tracking
>
>         Attachments: RF-12833.patch
>
>
> 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