netui-data:repeaterFooter Tag

<netui-data:repeaterFooter> Tag

This tag is used to render the footer of a <netui-data:repeater> tag.

Syntax

<netui-data:repeaterFooter />

Description

This tag is used to render the footer of a <netui-data:repeater> tag. This header may contain any HTML markup that can be rendered to a page. In the case of closing a table, ordered list, or unordered list, the elements </table>, </ol>, and </ul> could respectively be rendered inside the body of the <netui-data:repeaterFooter> tag.

There is no data item present at the time that the <netui-data:repeaterFooter> renders (because the iteration of the <netui-data:repeater> tag has ended), so tags in the body can not reference the {container...} data binding context to access the current item in the data set, though other databinding contexts are available.

Sample

The following sample renders the data set as an HTML table. The table has two columns, "index" and "name", and each iteration over the data set is rendered a row of the table. The <netui-data:repeaterFooter> tag renders once, after the iteration is complete. It renders a closing HTML table tag.
    <netui-data:repeater dataSource="{pageFlow.myDataSet}">
        <netui-data:repeaterHeader>
            <table border="1">
                <tr>
                    <td><b>index</b></td>
                    <td><b>name</b></td>    
                </tr>
        </netui-data:repeaterHeader>
        <netui-data:repeaterItem>
            <tr>
                <td>
                    <netui:label value="{container.index}" />
                </td>
                <td>
                    <netui:label value="{container.item}" />
                </td>
            </tr>
        </netui-data:repeaterItem>
        <netui-data:repeaterFooter>
            </table>
        </netui-data:repeaterFooter>    
    </netui-data:repeater>

Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/repeater/arrayList.jsp [BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/repeater/complexJavaObject.jsp [BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/repeater/rowSet.jsp

Related Topics

<netui-data:repeater> Tag Sample

Presenting Complex Data Sets in JSPs (Repeater Tags section)

<netui-data:repeater> Tag

<netui-data:repeaterHeader> Tag

<netui-data:repeaterItem> Tag