4 Replies Latest reply on Oct 15, 2013 3:47 PM by bleathem

    jquery-ui effects conflicts packed.js

    anilarora

      Using RF 4.3.4.Final.   I'm seeing an issue when using the resource optimization flag.  It appears that there's a conflict with jquery-ui as RF includes packed versions of jquery.effects.core.js and jquery.effects.highlight.js.  In the richfaces-components-ui-4.3.4.Final.jar, these are all at version 1.8.5.  However, according to this bug, it should be at least 1.9.2.  So, if I want to add more jquery-ui stuff, I end up with an issue because if I include jquery-ui-1.9.2-custom.js, I get a javascript error because of the version mismatch.

       

      Note, I don't have this issue with resource optimization disabled because those js files do not get included in my rendered html (presumably because I don't use a component that has that resource dependency).

       

      Are there any other approaches other than disabling resource optimization?  I've not found a good resource that handles jquery.noConflict for RF 4.3

      Thanks,

      Anil

        • 1. Re: jquery-ui effects conflicts packed.js
          anilarora

          As it turns out, to get around this, I can add the following in the <h:head> tag

           

            <h:outputScript name="jquery.js" />

            <h:outputScript name="jquery-ui-1.9.2.custom.js"/>

           

          Which should allow us to use the newer jquery-ui code as this will be called before packed.js.  However, I am still going to assume that this is an issue that RF isn't upgraded to the latest versions of those jquery-ui modules.  Let me know if I should enter a JIRA ticket.

          • 2. Re: jquery-ui effects conflicts packed.js
            bleathem

            We try to follow jQuery updates as best we can, however in recent jQuery releases they've deprecated and subsequently removed some APIs that we use either directly or are sued by some plugins we use.  This is a larger scope of work than simply incrementing the version number.  We plan to address this in an upcoming release.  Feel free to file a jira issue, we'll schedule it accordingly.

            • 3. Re: jquery-ui effects conflicts packed.js
              amittikoo84

              I have a connundrum and would really appreciate if I could get some help.

               

              After adding the resource optimization, if I add the jquery files manually as suggested, I get Jquery atmosphere undefined error, but if i remove these then Uncaught TypeError: Object [object Object] has no method 'sortable'

               

              Is there any way out?

              • 4. Re: jquery-ui effects conflicts packed.js
                bleathem

                Amit Tikoo wrote:

                 

                I have a connundrum and would really appreciate if I could get some help.

                 

                After adding the resource optimization, if I add the jquery files manually as suggested, I get Jquery atmosphere undefined error, but if i remove these then Uncaught TypeError: Object [object Object] has no method 'sortable'

                 

                Is there any way out?

                 

                Can you post some sample code?