Nested iterator tag doesn't work when inside a selectOneChoice tag
------------------------------------------------------------------

                 Key: ADFFACES-141
                 URL: http://issues.apache.org/jira/browse/ADFFACES-141
             Project: MyFaces ADF-Faces
          Issue Type: Bug
          Components: Build
            Reporter: Chris Hansen


I'm trying to display a list of objects that are within a list of objects as 
selectItems without using f:selectItems.

Here is an example:

<tr:iterator value="#{bean.list1}" var="list1">
        <tr:selectOneChoice>
                <tr:iterator value="#{list1.list2}" var="list2broken">
                        <tr:selectItem label="#{list2broken.label}" />
                </tr:iterator>
        </tr:selectOneChoice>
        <tr:iterator value="#{list1.list2}" var="list2works">
                <tr:outputText value="#{list2works.label}" />
        </tr:iterator>
</tr:iterator>

The "list2broken" list does not display any selectItems in the select, but the 
"list2works" list does output the text (so I know that list2 is not empty). I 
tried using f:selectItem with the same result.

As a workaround, I am creating a list of SelectItem objects and using 
f:selectItems, but I would like to avoid this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to