You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Adam Winer (JIRA)" <ad...@incubator.apache.org> on 2006/08/18 23:38:14 UTC

[jira] Updated: (ADFFACES-141) Iterator tag doesn't work when inside a selectOneChoice tag

     [ http://issues.apache.org/jira/browse/ADFFACES-141?page=all ]

Adam Winer updated ADFFACES-141:
--------------------------------

    Summary: Iterator tag doesn't work when inside a selectOneChoice tag  (was: Nested iterator tag doesn't work when inside a selectOneChoice tag)

This has nothing to do with nesting:  tr:iterator doesn't work inside selectOneChoice, or any selectOne/selectMany.

> 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