3 Replies Latest reply on Dec 17, 2005 3:15 AM by arvind p

    Displaying Portlet of one application in another application

    arvind p Newbie

      Hi,

      Is it possible to display a Portlet present in one Application in another portal application. If so then guide me how can I do this thing.

      Thanks

        • 1. Re: Displaying Portlet of one application in another applica
          Woodler Expert

          pages can feature portlets from any portlet app (WAR) deployed to the portal.
          when you add a portlet window to a page, make sure that the instance it points to references the portlet in the desired context, like:

           <deployment>
           <if-exists>keep</if-exists>
           <instance>
           <instance-name>MyPortletInstance</instance-name>
           <component-ref>WarContextHere.MyPortlet</component-ref>
           .......
          


          Note: I'm not quite sure what the explanation is, but in some deployment scenarios you'll have to prepend the context name with a '/', in others you don't. I deployed a portlet app contained in an EAR for example. The jbos-app.xml maps the app to a context name, but I have to refere to the context with a preceding '/' in the -object.xml, defining an instance of a portlet from this app.


          • 2. Re: Displaying Portlet of one application in another applica
            Roy Russo Master

            Sounds like a reference to WSRP, which will be available in 2.4 - 2Q 06.

            • 3. Re: Displaying Portlet of one application in another applica
              arvind p Newbie

              Hi mholzer,

              I thank you very much for posting solution for my query. Your suggestion really worked for me. Below is the XML fragment which I have used in my application. I haven't placed any "/" before the context name in <component-ref> tag.

              <deployment>
               <if-exists>keep</if-exists>
               <instance>
               <instance-name>MyPortletInstance</instance-name>
               <component-ref>WarContextHere.MyPortlet</component-ref>
              <deployment>


              Once again Thanks