On Tuesday 09 January 2001 06:03, you wrote:
> hi,
> I defined a layout, which includes two navigation and a screen, one
> navigation is just pure html codes, the other has relative java file. I
> found the screen is executed before the navigation, but the
> doBuildTemplate() methods in latter navigation and screen are executed
> twice. 
> If I remove the latter navigation from the layout, that method is
> only executed once. 

This shouldn't happen. The only reason I can see is that you execute
the latter screen and navigation somewhere in your java code in addition
to the template engine executions while parsing the templates.

> If I remove the screen from the layout, the screen is
> still excuted though it didn't display, 

this is correct behavior, cause the template engine is executing the 
templates corresponding java class if any.
see "How the templates are found" in
http://java.apache.org/turbine/velocity-site.html

> and the execution time is still
> two. so Could you tell me the processing flow to display page. I think that
> is Page, Action, Layout, Screen, Navigation from the Specification, right?

no left. ....eh no right. RIGHT!  :-)    (sorry, just a MP association)

> but it seems the Screen and Navigation are also executed before Layout.

are you sure?

> Then the process would be Page, Action, default Layout, Screen, Navigation,
> Layout, Screen, Navigation. Could you give me any comments on the
> processing flow.

yes, look at the turbine code. Follow the execution from the turbine servlet 
then you learn. 

> The Navigation line in Layout is:
> $navigation.setTemplate("something.vm"), is that the right way to use
> Navigation.

yes, but some use /  ("/something.vm")

>
> Regars
>
> lvjin
>

killi

-- 
Penguins are nice animals -
if you get to know them!


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