netui-template:template Tag
<netui-template:template> Tag
This tag points a content page at its template page.
Syntax
<netui-template:template
[reportErrors="boolean_reportErrors"]
templatePage="string_urlToTemplatePage" />
Description
This tag 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
reportErrors | Boolean. Determines if the template should report errors.
The errors will be reported inline on the JSP page. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
templatePage | The URL of the template page to use. |
|
Required | Supports runtime expression evaluation | Data bindable |
Yes | Yes | No |
|
|
Sample
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>
Code Sample
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_template/template/template.jsp
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_template/template/templateUsingJSP.jsp
Related Topics
<netui-template:...> Tags Sample
<netui-template:attribute> Tag
<netui-template:includeSection> Tag
<netui-template:section> Tag
<netui-template:setAttribute> Tag
<netui-template:visible> Tag