3 Replies Latest reply on Feb 16, 2013 7:10 AM by feder

    jQuery 1.8.3 in Richfaces 4.3.0 with bugs

    feder

      Hi RF community

       

      I ran into the following bug today, when pulling RF 4.3.0 from Maven/Nexus in order to implement rich:placeholder and rich:focus.

       

      Firebug reported:

      jQuery.ready.promise is not a function
      

      jQuery.ready.promise().done( fn );

       

      Happening at line 246 in the jquery.js file. Apparently that has been reported for jQuery 1.8.3 and earlier at http://bugs.jquery.com/ticket/12946. Do you intend to push a incremental version (e.g. RF 4.3.1) to jQuery 1.9.1 with the migrate-plugin http://github.com/jquery/jquery-migrate/ for older RF-sites to be compatible?

       

      Bests

       

      Feder

        • 1. Re: jQuery 1.8.3 in Richfaces 4.3.0 with bugs
          erdemyilmaz

          Hi Feder,

          we are testing richfaces 4.3.0.Final and this is also important for us. does this impact only for rich:placeholder and rich:focus components?

           

          kind regards,

          Erdem

          • 2. Re: jQuery 1.8.3 in Richfaces 4.3.0 with bugs
            feder

            Hi Erdem,

             

            It's certainly a bug. However, I strongly doubt it's due to the rich:placeholder and rich:focus tags. I need it to trace tonight and but some facts on this thread later on. I would definitely go for this minor version. In particular because of the atmosphere version upgrade.

             

            talk to you later.

            feder

            • 3. Re: jQuery 1.8.3 in Richfaces 4.3.0 with bugs
              feder

              Apparently that was a conflict invoked in the migration of RF 4.2.3 to 4.3.0. But due to my inproper jquery handling. I applied the $.noConflict BEFORE an older jquery version. RF uses 1.8.3 and my scripts depend ond 1.7.1. Summary: all good with RichFaces 4.3.0 (except fromt he bug within jquery 1.8.3: http://bugs.jquery.com/ticket/12946)

               

                   <rich:jQuery selector="#DOESNOTEXIST" query="addClass('dummyclass')" />

                  <!-- TODO: This javascript libraries need to be moved to the htmlheader.xhtml, when the JIRA case is resolved. -->

                  <script type="text/javascript">

                  $.noConflict();

                  // Code that uses other library's $ can follow here.

                  </script>

                  <!-- This script depends on jquery.1.7.1 -->

                  <h:outputScript library="js" name="/jquery-1.7.1.min.js"></h:outputScript>