# <netui-data:repeaterItem> Tag

This tag is used to render an individual item in the data set as it is iterated over by the <netui-data:repeater> tag.

## Syntax

<netui-data:repeaterItem
[choiceValue="string_choiceValue"] />

## 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.

A <netui-data:repeaterItem> has the ability to render different HTML markup for each of the items that it renders. This is possible using the <netui-data:choiceMethod> and <netui-data:choice> tags. The <netui-data:choiceMethod> tag decides which <netui-data:choice> tag to render.

## Attributes

choiceValue | The value of a <netui-data:choice> tag whose `value` attribute matched the result of invoking the <netui-data:choiceMethod> tag.
Required | Supports runtime expression evaluation | Data bindable
No | No | No

## Sample

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>

## Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/repeater/

## 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:repeaterFooter> Tag

<netui-data:choice> Tag