6 Replies Latest reply on Aug 1, 2011 8:38 AM by jeanav

    How can i integrate Primefaces 1.1 with my Seam 2.2 project?

    jeanav

      Hi all...


      How can i integrate Primefaces with my Seam web project?


      I've read about this some time ago....but i can't find any documentation about it.


      I'm using Eclipse Indigo, JBoss As 5.1, Seam 2.2.2.Final, JSF 1.2, Primefaces 1.1.


      Can anybody help me please?


      Thx for any help.


        • 1. Re: How can i integrate Primefaces 1.1 with my Seam 2.2 project?
          lvdberg

          Hi,


          you just add the PrimeFaces lib to your classpath, add some simple lines in web.xml (see manual), add the p:resources tag in each page and that's it.


          If you use an IDE you can  force the editor to use autocomplete for Prime. See the PrimeFaces manual how to do that.


          There are some simple rules for Prime with Rich/Ajax. For instance the growl component ONLY works if its inside a a4j-outputpanel.


          Be aware that Primefaces 1.x has no further development, because the developers have shifted to JSF 2 support. However the 1.x branch has some nice components (test always cross-browser support, because they have problems in that area !!)


          Hope this helps a bit


          Leo

          • 2. Re: How can i integrate Primefaces 1.1 with my Seam 2.2 project?
            jeanav

            Hi Leo...


            Thanks for help....


            So....i've all ready done what you say....but i got a problem....


            I'm using Eclipse Indigo, and autocomplete is all ready working...


            When i start my aplication, my jboss dont show any error, but, when i try to access my test page, it show's primefaces components all wrong...


            I'm using a menubar in my tests.....but, it shows my menu itens like links.....without any appearance or effect.


            Have see something like that anytime?


            Thx a lot for help.

            • 3. Re: How can i integrate Primefaces 1.1 with my Seam 2.2 project?
              lvdberg

              Hi,


              you have a problem with skinning. I don't recall well from which version you need to define specific files, but the case is that you need to have the skinningfiles in you project dirs and reference it.
              Something like the following:




              <link type="text/css"  rel="stylesheet" href="#{request.contextPath}/themes/base/skin.css"/>
              



              See the PrimeFaces docs for the correct setup and the website to download the skinsfiles.


              Leo

              • 4. Re: How can i integrate Primefaces 1.1 with my Seam 2.2 project?
                jeanav

                Thx a lot Leo...


                Tomorow, when i'll test your solution and i'll post here the result.


                See ya

                • 5. Re: How can i integrate Primefaces 1.1 with my Seam 2.2 project?
                  mdesignz

                  Just a heads up, Primefaces 1.1 is no longer supported.  They now only support the JSF2 versions -- which, unfortunately, are not supported by Seam 2.  We currently use 1.1 in production so there are no serious gotchas, but just be aware that it's a dead-end.

                  • 6. Re: How can i integrate Primefaces 1.1 with my Seam 2.2 project?
                    jeanav

                    Hi guys....


                    So, i've tried the leo's solution but the problem persist.
                    I'm thinking about forget it and use Primefaces only in a future new project.


                    If someone sugest another solution, please, contact me.


                    Thx everybody.


                    See ya.