Sorry, I forgot to include the whole thing. Here it is.
<tr:selectOneChoice value="#{DocsBean.docType}">
<tr:iterator var="item" value="#{DocsBean.docTypes}">
<tr:selectItem text="#{item.docType}"
value="#{item.docType}"/>
</tr:iterator>
</tr:selectOneChoice>
thanks
Bill
On Tue, Jun 3, 2008 at 3:55 PM, Andrew Robinson
<[EMAIL PROTECTED]> wrote:
> How are you putting the tr:iterator in the page? I am pretty sure no
> components support iterators as children that expect selectItem
> children.
>
> On Tue, Jun 3, 2008 at 12:00 PM, Zigc Junk <[EMAIL PROTECTED]> wrote:
>> I am trying to create dropdown list with the following code but the
>> dropdown list shows up empty. Is there anything wrong in my code? The
>> value is a java.util.List and I am sure it is not empty.
>>
>> <tr:iterator var="item" value="#{DocsBean.docTypes}">
>> <tr:selectItem text="#{item.docType}"
>> value="#{item.docType}"/>
>> </tr:iterator>
>>
>>
>> thanks
>>
>> Bill
>>
>