9 Replies Latest reply on May 13, 2008 5:51 PM by peterj

    Help ! IFrame Portlet !

    thiagodoamaral

      Hi Friends !!

      I need to create three portlets Iframe , to put in sane page of portal !!
      how to create diferents portlets Iframe, and and your instances ?

      ! Thanks !

        • 1. Re: Help ! IFrame Portlet !
          prabhat.jha

          you can download iframe portlets from portletswap.com

          • 2. Re: Help ! IFrame Portlet !
            thiagodoamaral

            Hi Friend ! Thanks for your help !

            it´s possible to create a new portlet with this IframePortlet ??

            for example MyIFramePortlet

            How to edit this file to create a new portletIframe ?

            • 3. Re: Help ! IFrame Portlet !
              peterj

              Edit the WEB-INF/portlet-instances.xml file to create the thre instances. Then edit the WEB-INF/iframe-object.xml file to place the three instances on a page. (The JBoss Portal documentation provides instructions on how to do this.)

              • 4. Re: Help ! IFrame Portlet !
                thiagodoamaral

                Hi peter ! I edit this files but I have a problem with Class not found "org.jboss.portlet.iframe.IFramePortlet" How I can to refer this ?

                thanks for your help !

                • 5. Re: Help ! IFrame Portlet !
                  peterj

                  Are you deploying the iframeportlet.war file, or your own war file? If your own war file, did you copy the classes from iframeportlet.war also?

                  If you are still having problems, post the results from:

                  jar -tf your.war

                  • 6. Re: Help ! IFrame Portlet !
                    thiagodoamaral

                    I make download the IFramePortlet.zip in jboss site , and extract this file in "jboss/server/default/deploy" !! inside this file I have a iframeportlet.war , build.xml etc .!! I did to use this portlet in my portal , but i want to create anymore Iframeportlets, In my "jboss/server/default/deploy" , I want the ´portlets IFrameportlet1 , IFrameportlet2 ,IFrameportlet3 etc !!

                    • 7. Re: Help ! IFrame Portlet !
                      peterj

                      You extracted the entire zip file into the deploy directory? You should not have done that - undo!

                      Here are the steps, starting with the downloaded iframe zip file:
                      1) Unzip the iframe zip file into a temporary directory.
                      2) Unpack the iframeportlet.war file into a directory named iframeportlet.war in a temporary location.
                      3) Edit the iframeportlet.war/WEB-INF/portlet-instances.xml and iframeportlet.war/WEB-INF/iframe-object.xmlf files as I indicated in my earlier post.
                      4) Copy the entire iframeportlet.war directory to server/default/deploy
                      5) In your browser, go to the IFrame page.

                      Here is an example portlet-instances.xml file:

                      <?xml version="1.0" standalone="yes"?>
                      <deployments>
                       <deployment>
                       <if-exists>overwrite</if-exists>
                       <instance>
                       <instance-id>IFrame1</instance-id>
                       <portlet-ref>IFramePortlet</portlet-ref>
                       </instance>
                       </deployment>
                       <deployment>
                       <if-exists>overwrite</if-exists>
                       <instance>
                       <instance-id>IFrame2</instance-id>
                       <portlet-ref>IFramePortlet</portlet-ref>
                       </instance>
                       </deployment>
                       <deployment>
                       <if-exists>overwrite</if-exists>
                       <instance>
                       <instance-id>IFrame3</instance-id>
                       <portlet-ref>IFramePortlet</portlet-ref>
                       </instance>
                       </deployment>
                      </deployments>


                      and an example iframe-object.xml file:

                      <?xml version="1.0" encoding="UTF-8"?>
                      <deployments>
                       <deployment>
                       <if-exists>overwrite</if-exists>
                       <parent-ref>default</parent-ref>
                       <page>
                       <page-name>IFrame</page-name>
                       <window>
                       <window-name>IFramePortletWindow1</window-name>
                       <instance-ref>IFrame1</instance-ref>
                       <region>center</region>
                       <height>0</height>
                       </window>
                       <window>
                       <window-name>IFramePortletWindow2</window-name>
                       <instance-ref>IFrame2</instance-ref>
                       <region>center</region>
                       <height>1</height>
                       </window>
                       <window>
                       <window-name>IFramePortletWindow3</window-name>
                       <instance-ref>IFrame3</instance-ref>
                       <region>center</region>
                       <height>2</height>
                       </window>
                       </page>
                       </deployment>
                      </deployments>


                      • 8. Re: Help ! IFrame Portlet !
                        thiagodoamaral

                        it´s works , but still i have a question ...

                        how to create a new portlet of ref ??

                        for example :


                        <if-exists>overwrite</if-exists>

                        <instance-id>IFrame1</instance-id>
                        <portlet-ref>IFramePortlet1</portlet-ref>

                        • 9. Re: Help ! IFrame Portlet !
                          peterj

                          The portlet-ref found in portlet-instances.xml must match the portlet name specified in portlet.xml.

                          Have you read the documentation? Everything you have asked so far is covered there.