8 Replies Latest reply on Mar 31, 2008 12:22 PM by adesai

    How to - Portal 2.6.4 and Rich Faces integration

    adesai

      Hello Friends,

      I've Portal 2.6.4 GA downloaded from Sources. Currently, I'm using MyFaces (JSFSunRI is not working as per my last topic posted here...i'm seeking help on that from the forum). However; my real time need is to use Rich Faces just as to avail of Ajax functionality.

      First of all,
      1. Can I use Rich Faces with the base install of JBoss Portal 2.6.4? (I do not have Seam)
      2. Can somebody make me aware of the steps/procedures to integrate Rich Faces with Portal 2.6.4?
      3. If I can not have Rich Faces with base Portal install, what are the other alternatives?

      Thank you in advance.
      -Amol

        • 1. Re: How to - Portal 2.6.4 and Rich Faces integration
          prabhat.jha

          For RichFaces you would need to use JBoss Portlet Bridge which is still in beta phase but most of the functionality is working. Please see what configuration needs to be done and what are supported versions at http://labs.jboss.com/auth/portletbridge/

          • 2. Re: How to - Portal 2.6.4 and Rich Faces integration
            adesai

            Ok, thanks Prabhat. Let me have a look there.

            • 3. Re: How to - Portal 2.6.4 and Rich Faces integration
              adesai

              Ok, i did follow all the steps and configured RichFaces. When I run the application provided in the archetype, getting following exception/error on the prompt.

              i just copied the war file (richfaces-basic.war) created by maven and deployed it in the deploy dir.

              15:22:51,859 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
              15:22:54,234 ERROR [STDERR] Exception in thread "ScannerThread"
              15:22:54,234 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space
              15:22:55,593 ERROR [Http11Processor] Error processing request
              15:23:01,843 ERROR [STDERR] Exception in thread "http-127.0.0.1-8080-1"
              15:23:01,843 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space
              15:23:07,750 ERROR [STDERR] Exception in thread "Timer-2"
              15:23:08,921 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space
              15:24:36,312 ERROR [STDERR] Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
              15:24:36,312 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space
              15:25:29,531 ERROR [STDERR] Exception in thread "ContainerBackgroundProcessor[StandardEngine[jboss.web]]"
              15:25:29,531 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space


              The log is spitting out something like:
              ERROR [STDERR] Mar 27, 2008 3:22:26 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit


              Please help.
              Thanks,
              -Amol


              • 4. Re: How to - Portal 2.6.4 and Rich Faces integration
                jvitor

                You can edit java_opts on run.bat to increase your PermGen space, example values:

                set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m

                • 5. Re: How to - Portal 2.6.4 and Rich Faces integration
                  adesai

                  thank you!

                  • 6. Re: How to - Portal 2.6.4 and Rich Faces integration
                    adesai

                    Hello there,

                    I'm trying to run sample richfaces-basic: echo application on Portal 2.6.4. It did work when I deployed it as per the instructions given in Maven Archetype.

                    When I compiled the app again and deployed it, it's giving following error/message on the browser as soon as I type anything in the text box.

                    type Status report
                    
                    message
                    
                    description: The requested resource () is not available.
                    


                    I put following code in my echo.xhtml and it did work fine. it's in fact showing me a beautiful calendar.
                    <rich:calendar popup="false"/>


                    Please let me know what could be the reason my echo app is not working.
                    Thanks a lot.
                    Regards,
                    -Amol


                    • 7. Re: How to - Portal 2.6.4 and Rich Faces integration
                      wesleyhales

                      This usually happens when the ajax request cannot access the resource on the servlet side. Is your page located under WEB-INF? If so, move it outside of that folder.

                      • 8. Re: How to - Portal 2.6.4 and Rich Faces integration
                        adesai

                        Thank you Wesley. That was the reason, i couldn't make it run the first time. Moved the page outside WEB-INF and the app started working.

                        regards,
                        -Amol