I would do the following:
1. create a Screen, FrameScreen, which writes directly to the
HttpServletResponse.
2. create a template frameScreen.wm that contains the html to layout the
frames.
3. Make sure no layouts are defined for this screen.
a. remove default.layout property from TurbineResources.properties
b. have no default.wm files under templates/layouts that lie in the path of
the template.
c. the getLayout(data) method in FrameScreen should return null.
or
3. reference the Screen explicitely in the url:
a. http://host/app/servlet/Turbine/screen/FrameScreen
b. have FrameScreen set the template it should use.
(data.getTemplateInfo().setScreenTemplate("frameScreen.wm))
I have fixed it so that 3a and 3b in the first option are not necessary, but
I need to look over the code a bit more before checking it in.
As an alternative you could define the frames in a layout (frame.wm). Write
a FrameLayout that sets its template in the doBuild method. The FrameScreen
then does nothing but set the Layout (to FrameLayout). FrameLayout should
write directly to the HttpServletResponse (i.e
data.getOut().print(templateResults) ). While I do not have the code
changes checked in, you could access this Screen/Layout like
> BTW, here is what I would LIKE to do:
>
> * Define one entity (layout? screen?) with a frameset including
> the following frames: header, footer, navigation, data.
I prefer to use Layouts only when there are Navigations. If it makes sense
to put all the code in one file, call it a Screen, but that is not required
(see above).
> * Have each frame defined in a separate WM file (a Turbine Screen
> for all of them except navigation, a Turbine Navigation for
> the navigation frame?)
>
I would call each frame a Screen. though there is no reason one of the
frames cannot make use of a Layout to add a Navigation module that has been
written for non-framed pages.
> What is the proper way to do this? Thanks,
>
No one way, but like I said I prefer to define the frameset in a Screen and
not use Layout modules with Frames.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]