[ http://issues.apache.org/jira/browse/MYFACES-790?page=all ]
Howard Abrams updated MYFACES-790:
----------------------------------
Fix Version: 1.1.3
> Select Menus bound to Integer value with calculated el expression in
> itemValue don't work
> -----------------------------------------------------------------------------------------
>
> Key: MYFACES-790
> URL: http://issues.apache.org/jira/browse/MYFACES-790
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.1
> Environment: MyFaces 1.1.1, WebSphere 5.1.2, Windows
> Reporter: Thomas Winkler
> Fix For: 1.1.3
>
> Assume the following code:
> <h:selectOneMenu value="#{bean.integerValue}" required="true">
> <f:selectItem itemValue="#{bean2.integerValue1 + bean2.integerValue2}"
> itemLabel="someLabel"/>
> </h:selectOneMenu>
> The problem here is, that the itemValue-property will be evaluated to a value
> of type java.lang.Long. The submitted value will be of type
> java.lang.Integer. When both values are the same, e.g. 9, the test in the
> class _SelectItemsUtil, line 68
> integerValue.equals(longValue)
> will fail and we get an error.
> Suggestion for problem solution:
> The problem may be resolved according 4.1.13.2 of JSF Spec 1.1 by trying to
> convert the EL calculated value to the data type of the parent component's
> type.
--
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