4 Replies Latest reply on Sep 18, 2006 11:23 AM by peterj

    Inlcude a url in the portlet

    portalgeek

      Hi,

      How do i include a url in the portlet. I would like to display url (say www.yahoo.com or www.jboss.org) on the portlet and when i click url the page should appear in frame like (iframe).

      Please throw some light

      thanks

        • 1. Re: Inlcude a url in the portlet
          peterj

          Did you look at the iframe portlet in the PortletSwap? http://labs.jboss.com/portal/portletswap/portlets_misc.html

          • 2. Re: Inlcude a url in the portlet
            portalgeek

            Peter,

            Thanks for the response. I have down-loaded the iframe portlet, build it and deployed on the portal.

            I can see the page i have created for this IFrame portlet (i.e a tab on the default portal), but i do not see the IFrame portlet. There are no error messages on the console. I have checked the server log file (jboss-4.0.4-Portal2.2.1SP1-EJB3\jboss-4.0.4.GA\server\default\log), it does not have any thing.

            As i understand, the IFramePortlet, should display (www.jboss.org) web-page in the portlet along with its content. Let me know if i am understanding wrong.

            Please throw some light if you have any in-sight.

            Thank u for all the responses.

            thanks

            • 3. Re: Inlcude a url in the portlet
              portalgeek

              Peter,

              I guess, i solved the issue. The problem was with the config file "portlet-instances.xml" . I am not very clear ( i am still playing around), but the iframeportlet which i downloaded from portal swap has config little bit different. The deployments tag was specified in 2 places one in *-object.aml and other in portlet-instances.xml. I removed the dployment tag in portlet-instances and just kept in *-object.xml. I am not quiet if this was the exact problem.

              In case you have any other in-sight please let me know.

              thanks



              • 4. Re: Inlcude a url in the portlet
                peterj

                Yes, the deployment should be only in *-object.xml, so the change you made is correct.

                Another possible solution would have been to use the Portal Administration portlet to add the iframe protlet to the default page (or some other page).