Hello,
I want to use frames in Jetspeed. I got the following code from a
mailinglist, but don't know how to implement it. Should I override the
defaultPage from ECS?
//-----------------------------------------------------------------------
package com.ovsoftware.ocms.framescreen;
import org.apache.ecs.*;
import org.apache.ecs.html.Frame;
import org.apache.turbine.util.*;
import org.apache.turbine.modules.*;
abstract class FrameScreen extends Screen
{
public ConcreteElement build(RunData data) throws Exception
{
FrameSetDocument fsdoc = new FrameSetDocument();
// Set the Title tag of the page
fsdoc.appendTitle("Title");
fsdoc.getFrameSet()
.setRows("200,*")
.addElement(
new Frame()
.setSrc( new DynamicURI(data, "SomeScreen").toString() )
.setName("top_nav")
.setScrolling(Frame.no)
.setMarginHeight(0)
.setMarginWidth(0)
)
.addElement(
new Frame()
.setSrc("http://www.foo.com/some_other_sites_content.html")
.setName("content")
.setScrolling(Frame.auto)
.setMarginHeight(0)
.setMarginWidth(0)
);
fsdoc.getFrameSet().addAttribute("frameborder", "1");
data.res.setContentType( data.contentType );
data.getOut().write( fsdoc.toString() );
return null;
}
public String getLayout(RunData data)
{
return null;
}
}
//-----------------------------------------------------------------------
Please help me with this problem :)
Niek
System specifications:
Operating system: Windows NT 4.0
Jetspeed version: 1.3a1
Cocoon version: 1.8.3-dev
JDK version: 1.3
Browser: IE 5.50.4134.0600
-----Original Message-----
From: Rapha�l Luta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Frames in Jetspeed
FER_JAVI wrote:
>
> Hi,
>
> How can I use Frames inside the home page.
>
You can try and use Turbine ECS MultiPage element support, but as a general
rule: don't do it, let the frames die...
--
Raphael Luta - [EMAIL PROTECTED]
Vivendi Universal Networks - Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
**********************************************************************
As you are aware, e-mails sent via Internet can easily be prepared or
manipulated by third persons, For this reason we trust you will understand
that, for your own and our protection, we rule out the legal validity of the
foregoing statements and comments. The applicable regulations of OVSoftware
on the legal validity of declarations of intent of a binding nature remain
unaffected.
This message is confidential. It may also be privileged or otherwise
protected by legal rules. It may be unlawful for you to read, copy or use it
in anyway. If you have received it by mistake please let us know by reply
and then delete it from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]