Turbine <[EMAIL PROTECTED]> wrote:
> 
This works for simple top and bottom Navigations but by adding the
Navigation directly to the Page, it's not possible for the Layout to create
a table and place Navigations in different cells of the table. How would you
do left and right Navigations by appending directly to the page? I would
think that all Navigations should return an element or container so that it
can be placed wherever the Layout needs it.

Yes, this sounds like a good idea.

Is it possible to use more then one Layout in an application? Or Page for
that matter?

Yes. For example, you could extend a Screen and override the getLayout() method.  Then 
have all other Screens that you want to use that particular layout extend that screen.

Jason.

-----

The DefaultLayout calls(delegates) to the navigation to decide where it goes
in the page. This way you can define/ customize your navigation.   So for
example you could do something like this in the top navigation:
data.getPage().getBody()
.addElement( new Center()
.addElement( new H2("Turbine User Management") )
.addElement("[�")
.addElement( new A(new DynamicURI(data,"admin.Main",true).toString(),"Admin
Main") )
.addElement("�]")
.addElement("��[�")
.addElement( new A(new
DynamicURI(data,"DefaultScreen","LogoutUser",true).toString(),"Logout") )
.addElement("�]") )
.addElement("
> ");





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