|
|||
TAG LIBRARIES: <netui> | <netui-data> | <netui-template> | |||
DETAIL: Syntax | Description | Attributes | Example | Implementing Class: org.apache.beehive.netui.tags.databinding.repeater.RepeaterItem |
This tag is used to render an individual item in the data set as it is iterated over by the <netui-data:repeater> tag.
Description |
This tag is used to render an individual item in the data set as it is iterated over by
the
<netui-data:repeater>
tag.
As an individual item is being iterated over, it is available using the
{container.item}
databinding expression.
The <netui-data:repeaterItem> tag can only be uesd when directly contained by a <netui-data:repeater> tag.
By default, the <netui-data:repeaterItem> simply renders its body once for each of the items in the <netui-data:repeater> tag's data set.
Example |
The following sample renders the data set as an HTML table. The <netui-data:repeaterItem> tag renders a new row in the table for each item in the data set.
<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>
|
|||
TAG LIBRARIES: <netui> | <netui-data> | <netui-template> | |||
DETAIL: Syntax | Description | Attributes | Example | Implementing Class: org.apache.beehive.netui.tags.databinding.repeater.RepeaterItem |