Hi all,

I'm very new to netui, having it forced on me by my employer without any
regard for training or ramp up.  It looks nice, but I'm trying to figure
out how to do things I've tackled with other toolkits already.

My first challenge is I am developing the basic template for an
application.  What I want to do is have a main template that defines the
style sheets, and has a body section.  I then want to define additional
templates, building on that basic one, that define some of the body
content, but then have their own additional section to be included.  So
something like this:

Basic Template:

<netui:body>
                <div id="pagelayout">
                        <div id="headercontainer">
                             <netui-temp:attribute name="bannerTitle"
defaultValue="EFR"/>
                        </div>
                     
                        <netui-temp:includeSection name="primarynav"/>
                     
                        <div id="contentcontainer">
                                <netui-temp:includeSection name="body"/>
                        </div>
                     
                        <div id="footercontainer">
                                <netui-template:includeSection
name="footer"/>
                        </div>
                </div>
</netui:body>


Bare Template:

<netui-temp:template templatePage="/jsp/template/basicTemplate.jsp">
        <netui-temp:section name="primarynav"/>

        <netui-temp:section name="body">
                Some text
                <netui-temp:includeSection name="content"/>
                Other text
        </netui-temp:section>
                        
        <netui-temp:section name="footer"/>
</netui-temp:template>


Content Page.jsp:

<netui-temp:template templatePage="/jsp/template/bareTemplate.jsp">
        <netui-temp:setAttribute name=" bannerTitle " value="specific
title"/>

        <netui-temp:section name="content">
                Actual content
        </netui-temp:section>
</netui-temp:template>


Now the attribute I define in the content jsp makes its way up to the
basic template just fine, but it always complains that the "content"
section isn't included in the template. This kind of embedded template
seems like to me should be trivially easy to do, but never is.  I don't
want to have the content pages have to specify all of the sections in
the basic template, and I want to be able to have additional sections in
an intermediate template so that I can break up a page easier, but I
just can't seem to figure out how to get this to happen, and I wasn't
too successful Googling for the answer.

Any help would be appreciated.


Doug McClure
Senior Consultant
Adroit Software, Inc
SSC, Bldg 8625, E4-S4
704-988-4634 / 8926-4634
 

********************************************************************************************
This message, including any attachments, contains confidential information 
intended 
for a specific individual and purpose, and is protected by law. If you are not 
the intended 
recipient, please contact the sender immediately by reply e-mail and destroy 
all copies.
You are hereby notified that any disclosure, copying, or distribution of this 
message, or
the taking of any action based on it, is strictly prohibited.

TIAA-CREF
********************************************************************************************

Reply via email to