9 Replies Latest reply on Jan 24, 2013 8:02 AM by rcordoba

    jQueryPlugin component

    blabno

      Hello Community!

       

      I've just created a new component that helps you load jQuery plugins and avoid conflicts with RF built-in jQuery. Current implementation is for RF 3.3.4-SNAPSHOT. Soon I will migrate it to 4.0.

      Please post your feedback.

       

      Demo, download and subversion address are here.

       

       

      Make sure to use default script and style loading strategies.

        • 1. Re: jQueryPlugin component
          jbalunas

          Awesome!!

           

          We'll likely not have time to review until we get M5 out, but can't wait to review.

          • 2. Re: jQueryPlugin component
            jabailo

            Bernard,

             

            I just tried out the latest version of your plugin and it worked fantastically.

             

            Thanks for all your help on setting up jQuery in my application...and have a great Christmas!

             

            (One note: I had to explicitly put the the root slash, "/", in of my src="/filepath/filename.js" to get it to find the *.js files   src="filepath/filename.js" threw an exception.)

            • 3. jQueryPlugin component
              srini0883

              Wow, this is incredible and Awesome. I just happened to go throught this.

               

                This is really helpful.

               

               

               

              Regards,

              Srini

              • 4. Re: jQueryPlugin component
                rcordoba

                Hi Bernard,

                 

                   I´m completely desperate until I have found this post. I haven´t tested it, but everyboday say it works great.

                 

                I´m trying to integrate JFlow Plus jQuery plugin (it´s an image slider jQuery plugin) in my JSF2 + RichFaces 4 web app. It is not working. I have seen your plugin. Did you migrated to Richfaces 4? Please, tell me so.

                 

                I wait for your comment.

                 

                Thanks in advance.

                Roberto.

                • 5. Re: jQueryPlugin component
                  blabno

                  Hi Romberto,

                  I haven't migrated the plugin to 4.x If you wish so I can do it next week.

                  • 6. Re: jQueryPlugin component
                    rcordoba

                    Hi Bernard,

                     

                        Thank you for your quick response and your offer. Actually, I have just found out how to solve it. I dont know if its the solution but as work around at least works. You have just to put the plugin and library call in he body instead of the head. This works!

                     

                    I think this is related with the order which the jquery libraries are called.

                     

                    So, if you want to do it, great, maybe will be helpful for many people, but dont do it for me.

                     

                    Thank you so much.

                    Roberto.

                    • 7. Re: jQueryPlugin component
                      yashu.here

                      Hello Bernard,

                       

                      I am trying to use JQuery plugins with RichFaces 4 (MyFaces 2.0.9 JSF 2.0 Application), I believe with this plugin I'll able to use JQuery plugins in my application.

                      When this will be available with RichFaces 4? and is there any alternative to get it working meanwhile?

                      Thanks for your effort and updates.

                       

                      Thanks

                      Yash

                      • 8. Re: jQueryPlugin component
                        tetradiamond

                        Nice work, looking forward to try it out. Now l realize the important of these online communities. I like the fact that if you have a problem then someone has probably solved it already. Sorry to go off topic a bit. Thanks again.

                         

                         

                         

                        _______________________________________________________________

                        Let your passions in life define you. Strength training is one of my passions

                        • 9. Re: jQueryPlugin component
                          rcordoba

                          Hi Bernard again,

                           

                             I change my answer above. It would be great if you could develop the plugin. As I told you I could avoid the incompatibity by moving the plugin and external jquery library from head to body. But, some days later I find another incompatibility I don´t know how to skip. I have one jsFunction that executes an action that changes the locale to internationalize the site. oncomplete it should render (rerender) @all to change the language. This render="@all" is working when I remove the jquery plugin and vice versa.

                           

                          Please find the code:

                           

                          <a4j:jsFunction name="selectRow" action="#{I18nBean.setPais}" render="@all" oncomplete="{alert('Cerrando');#{rich:component('popupPanelI18n')}.hide(); return false;}">

                                                                  <a4j:param name="currentRow" assignTo="#{I18nBean.sLocale}"/>

                          </a4j:jsFunction>

                           

                          I have tried millions of combinations, putting the plugin everywhere in the code. Replacing @all with components id, but there is always an strange behaviour and never works completely.

                           

                          Please help humanity and me with your plugin.

                           

                          Thanks in advance,

                          Roberto.