NetUI Tag Library Documentation (Version 1.0.2)

netui-template
netui-template:template Tag

Points a content page at its template page.

Syntax

<netui-template:template
    [documentType="documentType"]
    [reportErrors="boolean_reportErrors"]
    templatePage="string_urlToTemplatePage" >
    ... JSP content ...
</netui-template:template>

Description

Points a content page at its template page. A content page interacts with its template page through children tags of the <netui-template:template> tag. The legal children are as follows:

The URL of the template page is specified by the templatePage attribute on the <netui-template:template> tag.

Attributes
documentType
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes
reportErrors
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Boolean. Determines if the template should report errors. The errors will be reported inline on the JSP page.
templatePage
Required: Yes  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The URL of the template page to use.

Example

The following example shows a content page that adopts the template.jsp page as its template. The content page also sets the "title" attribute on the template.

    <netui-template:template templatePage="./template.jsp">
    ...
        <netui-template:setAttribute name="title" value="Template Tags Sample"/>
    ...
    </netui-template:template>


Tag Information
Tag Classorg.apache.beehive.netui.tags.template.Template
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone