[ 
https://issues.apache.org/jira/browse/TRINIDAD-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13479269#comment-13479269
 ] 

Mike Calmus commented on TRINIDAD-2296:
---------------------------------------

This type of code throws a ClassCastException:

Caused by: java.lang.ClassCastException: mypackage.MyClass cannot be cast to 
javax.faces.model.SelectItem
        at 
org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport.addSelectItems(SelectItemSupport.java:328)
        at 
org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport.getSelectItems(SelectItemSupport.java:119)

                
> Trinidad does not support iterable f:selectItems
> ------------------------------------------------
>
>                 Key: TRINIDAD-2296
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2296
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>            Reporter: Tomas Havelka
>
> Trinidad currently does not support JSF2's iterable f:selectItems. The code 
> below does not work:
> <f:selectItems value="#{controller.reasons}" var="reason" 
>                      itemValue="#{reason}" itemLabel="#{reason.description}"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to