John McNally wrote:
>
> 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
Hey, do you remember our discussion about ECS in WMSiteLayout being evil?
In this situation I would use MWOnlySiteLayout, that does not output any tags
that you don't need, write a layouts/frameset.wm that defines the frameset,
and screens/frameset.wm that outputs nothing. Then reference the frameset as
somehost/somecontext/Turbine/template/frameset.wm
Seem's like minimal hassle solution to me.
> 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.
I agree. Frames are just ordinary html pages, and they can use all functioanlity
we developed for them. A navigation frame could contain a layout containg single
navigation module, a footer frame could contain a layout containg static html markup
(with no navigations and a dummy screen) and main frame (frames) could contain layouts
that embed the screens that provide your application's functionality.
Rafal
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]