Hi,

> Can anyone point me to - or give me an example of doing Frames in a layout
> using WebMacroSitePage?

I believe you should be able to define a template for the frames, like this;

Frame.wm, which defines your frameset and frames.

In the corresponding screen, Frame.java, the layout should then by set to null.

That is the "public String getLayout(RunData data)" method should return null.

...but I couldn't get this to work.

So what I do is define a layout for the frame, like this

    public void doBuild( RunData data ) throws Exception
    {
        // Now execute the Screen portion of the page
        ConcreteElement screen = ScreenLoader.getInstance().eval ( data, 
data.getScreen() );
        if (screen != null)
            data.getPage().getHtml().addElement( screen );
                  
        // The screen should have attempted to set a Title
        // for itself, otherwise, a default title is set
        data.getPage().getTitle()
            .addElement( data.getTitle() );
                                  
        // need to remove the body part to get the frame registered
        data.getPage().getHtml()
                     .removeElementFromRegistry( 
                             "body" );
    }

This then just uses the template as the page contents.

Hope this helps,
Chris
---
"surely it is madness to accept life as it is and not as it could be"
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to