<netui-template:template> Tag

Points a content page at its template page.

Syntax

<netui-template:template
    [documentType="documentType"]
    [reportErrors="reportErrors"]
    templatePage="templatePage" />

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  |   Supports runtime evaluation: Yes  |   Data bindable:

reportErrors
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: No

Boolean. Determines if the template should report errors. The errors will be reported inline on the JSP page.
templatePage
Required: Yes  |   Supports runtime evaluation: Yes  |   Data bindable: No

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>