Because I can't make it work.  If the overriding method returns
"/SomeLayout.html", I get the exception below.  I'm still trying to
figure it out.  Thanks for the suggestion, though.

        Requested Layout not found: /SomeLayout.html
        Turbine looked in the following modules.packages path: 
        [com.stayconnect.orchid.modules,
         org.apache.turbine.modules, 
         org.apache.turbine.modules, 
         org.apache.turbine.modules, 
         org.apache.turbine.modules, 
         org.apache.turbine.modules]

        at org.apache.turbine.modules.
        LayoutLoader.getInstance(LayoutLoader.java:162)
        at org.apache.turbine.modules.
        LayoutLoader.exec(LayoutLoader.java:111)
        at org.apache.turbine.modules.pages.
        FreeMarkerSitePage.doBuild(FreeMarkerSitePage.java:189)
        at org.apache.turbine.modules.
        Page.build(Page.java:81)
        at org.apache.turbine.modules.
        PageLoader.exec(PageLoader.java:111)
        at Turbine.doGet(Turbine.java:298)
        at javax.servlet.http.
        HttpServlet.service(HttpServlet.java:499)
        at javax.servlet.http.
        HttpServlet.service(HttpServlet.java:588)
        at org.apache.jserv.
        JServConnection.processRequest(JServConnection.java:317)
        at org.apache.jserv.
        JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java:475)


John McNally wrote:
> 
> Why not override the getLayout method?
> 
> ----- Original Message -----
> From: Travis Low <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 14, 2000 11:41 AM
> Subject: BaseFreeMarkerScreen
> 
> > In my local copy of BaseFreeMarkerScreen, I added the method:
> >
> >     /**
> >      * Set the layout for this screen.
> >      *
> >      * @param data, the Rundata object
> >      * @param lay, layout file name
> >      */
> >     public void setLayout ( RunData data, String lay )
> >     {
> >         data.getParameters().add("00layout_template00", lay );
> >     }
> >
> > So I could do this in the subclass:
> >
> >    setLayout( data, "/SomeLayout.html" );
> >
> > Because I might want a slightly different layout, depending on the
> > data that I need to display.  Is this a bad idea?


------------------------------------------------------------
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