2 Replies Latest reply on Apr 1, 2010 11:25 PM by travis5913

    richfaces picklist and jquery error

    travis5913

      I've am trying to get the rich:picklist control to work when you include the jquery.js file.  For some reason as soon as I put that in my page the picklist becomes unusable.  I have my items showing up on the left side of the picklist, but I am unable to click on any of them and move them to the right.  I tried using the rich:listShuttle control, and it acts the same way.  If I remove the jquery.js and it works fine.  I am not calling any jquery functions at all in my page, so I'm not sure why it would be interfering with these richfaces controls.

       

      I am using jsf 1.2 and richfaces 3.3.2SR1 and jquery 1.3.2.  I have tried using richfaces 3.3.1, as well as jquery 1.4.2, and I it doesn't make any difference.  Any help would be greatly appreciated.

        • 1. Re: richfaces picklist and jquery error
          ilya_shaikovsky

          RichFaces uses bundled jQuerry for components. That's why it's not recommended to use external library because it will the reason of conflicts especially if version is differs from bundled.. So it's recommended to load jQuery from richfaces jars using loadScript and use it instead.

           

          Many problems described there http://community.jboss.org/wiki/Commonclientside#jquerryusage

          1 of 1 people found this helpful
          • 2. Re: richfaces picklist and jquery error
            travis5913

            Thanks for replying.  I did not realize that the richfaces components were actually using jquery and other javascript libraries.  I just thought that richfaces gave you the option to use their built in version of richfaces if you wanted to, and I didn't realise that you need to replace the $ when you are calling jquery.  It is obvious I need to do some more reading about richfaces.  Thanks again for your answer.