The <netui-data:repeater> tag is a markup-generic tag that repeats over a data set.
The repeater tag set is used to render data from a data set into a page. The repeater
itself does not render any markup. Instead, the markup from its contained tags is
rendered to create the content generated by this tag. The tags in the repeater tag
set are as follows:
The repeater can render in two modes; the first mode is a simple mode where the body of
the repeater is rendered once for each item in the data set. In this case, none of the
other tags above are present in the repeater body. For example, the following will
render an unordered HTML list of items that are list items which contain the lastName, firstName
of the current "customer" in the data set.
<ul>
<netui-data:repeater dataSource="pageInput.customers">
<li><netui:span value="${container.item.lastName}, ${container.item.firstName}"/></li>
</netui-data:repeater>
</ul>
The second mode is a more structured mode
of rendering where the tags above are used to delineate iteration boundaries on the body of
a <netui-data:repeater> tag. In this case, if one of the above tags is present,
any content directly in the body of the repeater is not rendered; rather, the content
inside the structured tags of the repeater is rendered.
For example, the following will render the same output as the example
shown above, but it uses the structured tags for rendering the
pageFlow.customers expression:
<netui-data:repeater dataSource="pageInput.customers">
<netui-data:repeaterHeader>
<ul>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<li><netui:span value="${container.item.lastName}, ${container.item.firstName}"/></li>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</ul>
</netui-data:repeaterFooter>
</netui-data:repeater>
RepeaterHeaderRepeaterItemRepeaterFooterorg.apache.beehive.netui.tags.databinding.repeater.pad.Pad |