|
|||
TAG LIBRARIES: <netui> | <netui-data> | <netui-template> | |||
DETAIL: Syntax | Description | Attributes | Example | Implementing Class: org.apache.beehive.netui.tags.template.Section |
Sets HTML content inside placeholders defined by a <netui-template:includeSection> tag.
Syntax |
<netui-template:section
name="name"
[visible="visible"] />
Description |
Sets HTML content inside placeholders defined by a <netui-template:includeSection> tag.
The <netui-template:section> tag must have a parent <netui-template:template> tag.
The <netui-template:section> tag appears in content pages, which adopt a template page, set properties on the template's placeholders (using this <netui-template:section> tag), and render the completed HTML in the browser.
For content to be placed in the placeholder, the <netui-template:section> and
<netui-template:includeSection> tags must have matching name
attributes.
For example, assume a template page defines the following content placeholder.
In the template JSP page...
<table> <tr> <td colspan="3"> <netui-template:includeSection name="tableHeader"/> </td> </tr>
Then a content page can set HTML content in the placeholder using the <netui-template:section> tag.
In a content JSP page...
<netui-template:section name="tableHeader"> <h1>HEADER TEXT</h1> </netui-template:section>
The HTML rendered in the browser will appear as follows.
<table> <tr> <td colspan="3"> <h1>HEADER TEXT</h1> </td> </tr>
Attributes | |||||||
name |
|
||||||
visible |
|
Example |
Assume a <netui-template:includeSection> tag defines a content placeholder inside a table row
<tr> <netui-template:includeSection name="rowPlaceholder"/> </tr>
A content page can set content into the placeholder using the <netui-template:section> tag as follows.
<netui-template:section name="rowPlaceHolder"> <td><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p></td> </netui-template:section>The HTML rendered in the browser will appear as follows.
<tr> <td><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p></td> </tr>
|
|||
TAG LIBRARIES: <netui> | <netui-data> | <netui-template> | |||
DETAIL: Syntax | Description | Attributes | Example | Implementing Class: org.apache.beehive.netui.tags.template.Section |