7 Replies Latest reply on Dec 8, 2011 9:50 AM by antoine_h

    Using Dashboard only

    xantos92

      Hello everyone.

       

      I am new to JBoss and also to GateIn. I've an existing JBoss 5.1 AS with Seam and want to include a dashboard.

       

      My goal is:

      After the login the user sees the /home-site. This is where i want to include the personal, individual Dashboard. I dont need the navigation or the GateIn-Login. All i need is the dashboard (See the picture below), the dashboardeditor and the application registry.

       

      Is it possible to include only these to my existing system? And if true, do you know some good guides for this? And if not, is there another or a better way to implement a dashboard?

       

      Thanks and Greetings

       

      I hope my english skills don't let your eyes bleed

        • 1. Re: Using Dashboard only
          xantos92

          Does nobody know what i need to extract from the Framework for the Dashboard?

          • 2. Re: Using Dashboard only
            theute

            The dashboard requires many services from the portal to operate for its personalization including page management, user memberships, security, application registry.

            Nothing is impossible with software, but that would be difficult to extract like that, portals are actually made for the other way around (include Seam applications in a aggregation infrascruture (the portal))

            1 of 1 people found this helpful
            • 3. Re: Using Dashboard only
              eduardo.mello.cantu

              Actually I've managed to do that, but it's not fully completed, because I'm not abble to run portlets made up with seam/richfaces/portletbridge.

               

              But if you want to know anyway, what i do was download GateIn Portal source and extract only the things that I judge necessary.

              • 4. Re: Using Dashboard only
                xantos92

                Very interesting. Can you tell me what you have extracted exactly?

                 

                You can never run portlets on the dashboard, can you?

                • 5. Re: Using Dashboard only
                  eduardo.mello.cantu

                  As said:

                  Thomas Heute wrote:

                   

                  The dashboard requires many services from the portal to operate for its personalization including page management, user memberships, security, application registry.

                   

                  The case is that my application already have all the users and securty stuff, so the only thing that I need was the dashboard thing.

                   

                  I can actually run portlets, the problem laid on portlets devoloped with richfaces, but that happens because my application uses richfaces, so I have a classcastexception. But if you don't bother in using plain jsf portlets, this is perfect for you.

                   

                  In order to extract what I needed I went through GateIn Portal source and GateIn Portlet Container bundled with JBoss AS.

                   

                  My application is packed like this (It's only listing non trivial stuff):

                   

                  application.ear

                  -lib

                  --ccpp.jar

                  --pc-api.jar (portlet container stuff, download from GateIn Portlet Container)

                  --pc-controller.jar (also, portlet container stuff)

                  --pc-portal.jar (also, portlet container stuff)

                  --pc-portlet.jar (also, portlet container stuff)

                   

                  -META-INF


                  -jboss-seam-2.2.2.Final.jar


                  -application.jar  (EJB)


                  -application.war (WEB)

                  --WEB-INF

                  ---context.xml (copied from simple portal demo downloaded from GateIn Portlet Container bundled with JBoss AS)

                  ---jboss-portal-beans.xml (copied from simple portal demo)

                  ---portal.tld (copied from simple portal demo)

                  ---web.xml (modified to add properties found on the simple portal demo)

                  ---tags (dir copied from simple portal demo)

                  ---lib

                  ----common-mc.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----jboss-common-core.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----jboss-dependency.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----jboss-kernel.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----jboss-mdr.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----jboss-reflect.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----jbossxb.jar (JBoss microkernel stuff, also copied from de simple portal demo)

                  ----pc-controller.jar (portlet container stuff, also copied from de simple portal demo)

                  ----pc-mc.jar (portlet container stuff, also copied from de simple portal demo)

                   

                  JBoss lib

                  -wci-tomcat.jar (gatein portal stuff, also copied from de simple portal demo)

                  -wci-wci.jar (gatein portal stuff, also copied from de simple portal demo)

                  -portlet-api.jar (portlet api, also copied from de simple portal demo)

                   

                  All these were what I've extracted.

                   

                  Now, in order to build your portal page, the one that is going to contain all the portlets, you have also to extract and adapt some jsp from the simple portal demo. But basically you need the portal and xportal tags.

                   

                  Hope that this little/confusing "tutorial" could help you.

                  • 6. Re: Using Dashboard only
                    xantos92

                    That is very nice, i thank you very much.

                     

                    I think i'll work with the dashboard again in April or later, atm just portletdeveloping. But when the time has come this will help me very much.

                    • 7. Re: Using Dashboard only
                      antoine_h

                      nice !

                      very interesting to know that this kind of things can be done... and have the tutorial to do it.

                      thanks,

                      Antoine

                      JBoss Portal and GateIn (JSR-286), JSF, Richfaces, J2EE, Drools, BRMS.

                      http://www.sysemo.com/Sysemo-expertise-portails-jboss-portal.php