When you use VelocityOnlyLayout $page (and other ECS based commands) do not
work. $link does still work.
The best solution it to use VelocityECSLayout by default and in the screen
class for the frameset HTML page overide get layout like so.
public String getLayout(RunData data) {
return "VelocityOnlyLayout";
}
This will make the frameset page not use ECSLayout, but the rest of the site
still can. When using Velocity only layout you must manually write all the
HTML. ECSLayout automatically adds tags such as <Html><head><body> etc.
Ben Gidley
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 18:31
To: Jakarta-Turbine
Subject: Using Frames
I'm trying to build an application using the newapp example which comes with
tdk 2.2 b3. I already read the Velocity How-To and i searched the archiv.
I have found to set the layout.default to VelocityOnlyLayout in the
TurbineRecource.propertie.
layout.default=VelocityOnlyLayout
template.homepage=Index.vm
I tried to set the frameset in the Login.vm or in the Index.vm like this
$page.setTitle("Index")
$page.setBgColor("#aabbcc")
<frameset>
<frame src="$link.setPage("FrameTop.vm")" />
<frame src="$link.setPage("Navigation.vm")" />
<frame src="$link.setPage("Bottom.vm")" />
</frameset>
But nothing happens.
What's wrong?
Help would be appreciated
Dieter
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The service
is powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>