Is anyone using frames with turbine?  If so could someone please email a sample 
screen which uses frames.  I tried using the screen below but it causes an error 
because the Layout gets set to null and it reports back that it can't find 
Layout 'null'.  Thanks


Ed


> 
> public 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("65, *")
>             .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;
>     }
> }
> 
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to