Hi Alexander,

this is the source code:

package java.bim.portal.portlets;

import org.apache.jetspeed.portal.portlets.AbstractPortlet;
import org.apache.turbine.util.RunData;
import org.apache.ecs.ConcreteElement;
import org.apache.ecs.StringElement;

public class BimzzzIFramePortlet extends AbstractPortlet
{
    public ConcreteElement getContent (RunData runData)
    {
        String   url = getPortletConfig ().getInitParameter ("url");

        return (new StringElement ("<iframe src=\"" 
                    + url + "\" width=\"100%\" height=\"100%\" "
                    + "name=\"bimzzzwindow\" frameborder=\"0\">"
                    + "no IFrames supported</iframe>"));
    }
}


Further more, you have to add the following portal entry to the file
local-portlets.xreg

    <portlet-entry name="BimzzzIFramePortlet" hidden="false" type="instance"
application="false">
        <meta-info>
            <title>BimzzzIFramePortlet</title>
            <description>BimzzzIFramePortlet</description>
        </meta-info>
        <classname>java.bim.portal.portlets.BimzzzIFramePortlet</classname>
        <parameter name="url" value="http://edsel/public/www.album.com";
hidden="false">
            <meta-info>
                <title>URL</title>
                <description>This is the location of the
content.</description>
            </meta-info>
        </parameter>
        <media-type ref="html"/>
    </portlet-entry>


Please contact me in case of any problems.

Matthias Wimmer





-----Original Message-----
From: Alexander Keiblinger [mailto:
Sent: Tuesday, June 04, 2002 3:43 AM
To: Wimmer, Matthias
Subject: RE: linking in portlets


Dear Mr. Wimmer,

Do you already have published the source code of your "frame-portlet" ? I am
very interested in the code as that would solve one of my current problems
with building a discussion forum into my planned jetspeed portal.

Thanks for your help, A. Keiblinger

---
Dipl.-Inform                      Technische Universit�t Berlin
Alexander Keiblinger             Department of Computer Science
Voice: +49 30 314-21762                 Systems Analysis and IT
Fax:   +49 30 314-21799            Sekr. FR 6-7, DAI Laboratory
[EMAIL PROTECTED]                        Franklinstrasse 28/29
http://www.dai-lab.de                  D-10587 Berlin - Germany 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to