The <netui-data:choiceMethod> tag invokes a decision method on the basis of which a particular <netui-data:choice> tag is rendered.
<netui-data:choiceMethod
[failOnError="boolean_failOnError"]
[method="string_method"]
[object="string_object"]
[resultId="string_resultId"] />
{container.item...}.)
In the following example, the <netui-data:choiceMethod> tag calls the isItemsOnSale
method, which returns a boolean value. If the return value is true, then the contents of the
<netui-data:choice value="true"> tag are rendered; if the return value is false, then the contents of the
<netui-data:choice value="false"> tag are rendered.
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="isItemOnSale">
<netui-data:methodParameter value="{container.item.quantityavailable}"/>
</netui-data:choiceMethod>
<netui-data:choice value="true">
<tr class="row" bgcolor="#FF9999">
<td><netui:label value="{container.item.itemnumber}"/></td>
<td><netui:label value="{container.item.itemname}"/></td>
<td><netui:label value="{container.item.quantityavailable}"/></td>
<td><netui:label value="{container.item.price}"/> Clearance Item</td>
</tr>
</netui-data:choice>
<netui-data:choice value="false">
<tr class="row">
<td><netui:label value="{container.item.itemnumber}"/></td>
<td><netui:label value="{container.item.itemname}"/></td>
<td><netui:label value="{container.item.quantityavailable}"/></td>
<td><netui:label value="{container.item.price}"/></td>
</tr>
</netui-data:choice>
</netui-data:repeaterItem>
[BEA_HOME]\weblogic81\samples\workshop\SamplesApp\WebApp\tagSamples\netui_databinding\choice
<netui-data:choice> Tag Sample
Presenting Complex Data Sets in JSPs (Repeater Tags section)