6 Replies Latest reply on Jun 23, 2011 8:05 AM by jjamrich

    how can i use richfaces with jboss portal platform

    utkarsh_shinde

      hello

      how can i use richfaces with jboss portal.any guidence pls reply.

      Utkarsh

        • 1. Re: how can i use richfaces with jboss portal platform
          jjamrich

          Hi,

          you can use RichFaces on JBoss Portal as well as on GateIn because of JBoss PortletBridge.

           

          PortletBridge 3.x supports JSF2 and/or RichFaces 4, previous version - PortletBridge 2.x - supports JSF1.2 and RichFaces 3.x.

          See project page for more info, there are links for documentation as well as screencast with tips and examples.

           

          JJa

          • 2. Re: how can i use richfaces with jboss portal platform
            jjamrich

            You can create RichFaces project running within Portal environment from scratch using archetypes or convert your existing RichFaces application to be able run as portlet.

            Note that all this links relate to PBR 2.x.

            PBR 3.x is under active development and Beta1 is available right now.

            • 3. Re: how can i use richfaces with jboss portal platform
              utkarsh_shinde

              hi jan

              I downloaded jboss portlet bridge 2.1.how i use richfaces with portlet bridge.how i deploy it in jboss portal platform.i dont get guide or any documention. for that.

              • 4. Re: how can i use richfaces with jboss portal platform
                jjamrich

                First question is if you are starting project from scratch or you have RichFaces project you would like to run within Portal environment.

                 

                In first case, you should start by creating project from PortletBridge archetype. But because you wrote you had downloaded PortletBridge binaries, I assume you want to deploy your existing application with RichFaces within JBoss Portal (assume you use JBoss Portal 2.4.2 as well).

                Then you have to make some changes in your project files such as web.xml and faces-config.xml and add portlet.xml, portlet-instances.xml and jboss-portlet.xml. RichFaces project require made some additional entries in project files to select load resources strategy (web.xml)

                 

                You can get more guidance from this blogspot and reading documentation.

                 

                I'm not sure if your issues are related to JBoss Portal (configure and deploy portlet, or get your portlet visible on Portal page), or PortletBridge related (what need to change to get Portlet from JSF/RichFaces application), so you should provide more information what issue you are facing. There is a lot of documentation on jboss.org for every project hosted here. You should look for link "Documentation" in project page such as jboss.org/portletbridge.

                And for PortletBridge there are many screencasts with usefull tips from JBoss PortletBridge developer at vimeo.com.

                • 5. Re: how can i use richfaces with jboss portal platform
                  utkarsh_shinde

                  hi,jan

                  Actually i want to make vertical menu at left side or right side using jboss portal platform 5.1.how can i make it, can i use richfaces with jboss portal to make it please guide me.i am very new to jboss portal.

                  thanks and regards

                  Utkarsh Shinde.

                  • 6. Re: how can i use richfaces with jboss portal platform
                    jjamrich

                    In fact you can use RichFaces to create application with complex menu within portlet.

                     

                    PortletBridge distribution contains 3 examples (simple JSF app - Car Booking Demo, RichFaces Live demo and Seam Booking demo).

                    So please checkout and build (maven based project) PortletBridge distribution from sources.

                    You can find examples mentioned above under examples. Copy examples/richfaces/richfaces-demo/target/richfaces-demo.war into $JBOSS_HOME/server/default/deploy and install it (follow JBoss Portal documentation)  - you need to import your portlet (your application configured to use PortletBridge), create navigation node (to be able achive your portlet on portal page) and create page (bound to navigation node and containing your portlet).

                     

                    In richfaces-demo you could find many examples and inspiration (richfaces-demo is the same RichFaces Live demo you can find on the internet demonstration what RichFaces provides, only configured according to documentation I mentioned above to make it abble run within Portal environment.)

                     

                    Keep in mind that Portal environment is very usefull for applications runing together with many other applications in one Portal page in the same time, but should seems quite difficult to manage (bit more steps need to see your app running in GateIn/EPP, but this is because of Portal concept)

                    On the other hand, GateIn (or EPP) provide usefull UI, using drag&drop to manage your apps, navigation nodes and so on, so it shouldn't be difficult to understand.