1 2 Previous Next 26 Replies Latest reply on Nov 25, 2007 12:03 PM by shimonl97 Go to original post
      • 15. Re: Portlet with Ajax4jsf
        viggo.navarsete

        Thanks dimiter_a, I'm about to test this myself! It's great to see other people also using the JSF-portlet approach:)

        • 16. Re: Portlet with Ajax4jsf
          viggo.navarsete

          I'm just curious:
          1. Where did you find the required information to make all work together? In one place, or by googling the internet? 2. You're developing a JSF application where you use a portlet bridge to make it work in a portal, right?
          3. Do you utilize Maven for dependency management?
          4. From the configuration you have provided here, I can assume you're using the portlet bridge from the Richfaces/Ajax4JSF guys, not the one from Sun? Is that what you refer to as "portlet-3.1.2.GA " Can it be downloaded from a Maven repository?

          Thanks in advance:)

          • 17. Re: Portlet with Ajax4jsf
            dimiter_a


            To Viggo:

            1. Unfortunatelly there is not a place where you can read all you need to make a richfaces portlet work on jboss portal. If I had more time, I would make a detailed tutorial to save the work for others that try this(It took me about 3 days). Anyway I think this will be done much better by the developers from jboss.

            2. That's exactly what I had to do. Multiple JSF RichFaces applications, packed into portlets, running on a single portal server, it is very convinient.

            3. Yes, I used Maven for dependency management of all project jars.

            4. Here is the url of the portlet-3.1.2.GA.jar - in maven repository:
            http://repository.jboss.com/maven2/org/richfaces/extensions/portlet/3.1.2.GA/

            Your last question remind me one more thing. Actually the working configuration is using the FacesPortlet form sun:
            portlet.xml:

            <portlet-name>NutritionPortlet</portlet-name>
             <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
             <init-param>
             <name>com.sun.faces.portlet.INIT_VIEW</name>
             <value>/pages/menu.jsp</value>
             </init-param>
            


            I'm just curious:
            1. Where did you find the required information to make all work together? In one place, or by googling the internet?
            2. You're developing a JSF application where you use a portlet bridge to make it work in a portal, right?
            3. Do you utilize Maven for dependency management?
            4. From the configuration you have provided here, I can assume you're using the portlet bridge from the Richfaces/Ajax4JSF guys, not the one from Sun? Is that what you refer to as "portlet-3.1.2.GA " Can it be downloaded from a Maven repository?

            Thanks in advance:)


            • 18. Re: Portlet with Ajax4jsf
              theute

               

              "dimiter_a" wrote:

              1. Unfortunatelly there is not a place where you can read all you need to make a richfaces portlet work on jboss portal.


              The reason is that we are working on making it really work with released packages beofre we can explain how to use it. Right now this is subject to a lot of changes.

              "dimiter_a" wrote:

              If I had more time, I would make a detailed tutorial to save the work for others that try this(It took me about 3 days). Anyway I think this will be done much better by the developers from jboss.


              Really we accept all contributions, if someone else do this, we can focus on something else, but i would wait till we have something stable.

              • 19. Re: Portlet with Ajax4jsf
                viggo.navarsete

                dimiter_a: thanks for valuable input:)
                But, about my last question: If it means you're using the Suns portlet bridge, why do you have to include the portlet-3.1.2.GA.jar? Do you refer to it somewhere in your code? What's the magic behind that specific jar file?:)

                • 20. Re: Portlet with Ajax4jsf
                  viggo.navarsete

                  When things have been become more stable, I will be more than willing to write a blog entry or two about JSF portlet development since I think there not much material available. Let's give the JBoss guys some space to finish up their work, and then we can contribute with lot's of examples and blogs about it:)

                  • 21. Re: Portlet with Ajax4jsf
                    theute

                    Cool :) And go to Java User Groups with that ;)

                    • 22. Re: Portlet with Ajax4jsf
                      viggo.navarsete

                      dimiter_a: I'm also facing the same problem you had previous in this thread, with the exception viewing the portlet. You fixed it by adding a factory to your faces-config.xml. I tried too, but wasn't able to make it work:( Any special place in the xml file to put it?

                      • 23. Re: Portlet with Ajax4jsf
                        dimiter_a

                        viggo: There is many files that have to be configured correctly, so the problem could be everywhere. I can send you the working portlet over email or skype, because I was unable to publish it now.

                        • 24. Re: Portlet with Ajax4jsf
                          wesleyhales

                          I committed a working example in portletswap here:
                          http://anonsvn.jboss.org/repos/portletswap/portlets/src/framework/RichFacesPortlet/

                          But like Thomas said, we are working on making this stable and it is still subject to changes.

                          • 25. Re: Portlet with Ajax4jsf
                            viggo.navarsete

                            dimiter_a: You could send it to viggo.navarsete@gmail.com Thanks in advance, and have a nice weekend:)

                            • 26. Re: Portlet with Ajax4jsf

                              I tried a4j in jboss portlet two ways, first with files from http://anonsvn.jboss.org/repos/portletswap/portlets/src/framework/RichFacesPortlet/
                              Had to get some files from richfaces svn because they are not in main jar file, after some work I managed to compile it all but when I tried it in my portal I got this exception:
                              java.lang.NullPointerException
                              at com.sun.faces.portlet.LifecycleImpl.getWindowStateIdentifier(LifecycleImpl.java:524)
                              When I tried it with <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
                              With all other set as required, I got my page but A4J libraries were not imported so I go js error a4j not defined.
                              can anyone help?

                              1 2 Previous Next