I assume you are using a Layout, since you want to use Navigations.  I will
give an example of something that I believe will work, but I am sure I will
mess up some of the method names since I do not write things this way
generally and I do not want to look up several things to give a simple
example.

myLayout
{

public doBuild(data)
{
    PrintWriter out = data.getOut();
    out.write("<table> ...some more hml");
    NavigationLoader.getInstance().exec("Nav1", data);
    out.write("some more hml");
    NavigationLoader.getInstance().exec("Nav2", data);
    out.write("some more hml");
    ScreenLoader.getInstance().exec("theScreen", data);
    out.write("some more hml");
    NavigationLoader.getInstance().exec("Nav3", data);
    out.write("some more hml...</table>");
}

}

The doBuild methods in each of the navs and screen will get the output
stream and write directly to it. they can return null.
theScreen's getLayout method should return "myLayout".

Now once you get this to work, please give up on using this as a method to
build web apps.  Use WebMacro or FreeMarker.  They completely hide the use
of  ECS within Turbine.

John McNally



----- Original Message -----
From: Sasan, Hement <[EMAIL PROTECTED]>
To: 'Turbine' <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 9:50 AM
Subject: Turbine without ECS


> Hi!
>
> I'm writing an application using Turbine, but with out ECS. As per the
> response I got in one of the previous mails, it was mentioned that Turbine
> can be used with out ECS. But, it seems (from the Turbine API) that
Turbine
> and ECS are tightly coupled. Let's take an example of "doBuild" method of
> Screen.java, and this class is inherited by all the screens. Right!
>
> Now this very method (doBuild) returns an object of type
> "org.apache.ecs.ConcreteElement", that means the developer needs to create
> an object of this type.
>
> When I write my own html stuff using the IO streams, in my screens, the pa
ge
> works through Turbine, but my navigations get lost. I get only the part, I
> write in my screens using Streams.
>
> Is ConcreteElement of any significance, if the developer is not using ECS?
> It's just one example. At many places in Turbine, ECS would be there, I
> guess.
>
> Though ECS is a very useful module, but I would like to first, use
Turbine,
> with out ECS.
>
> Any comment on "Turbine with out ECS"? What all points need to take care
of?
>
> Thanks,
> - Hement
>
>
> ------------------------------------------------------------
> 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