[ http://issues.apache.org/jira/browse/MYFACES-186?page=all ]
Martin Marinschek closed MYFACES-186:
-------------------------------------
Resolution: Fixed
Fix Version: Nightly Build
Has been fixed - by whoever it was.
regards,
Martin
> x:radio and x:checkbox cause ClassCastException
> -----------------------------------------------
>
> Key: MYFACES-186
> URL: http://issues.apache.org/jira/browse/MYFACES-186
> Project: MyFaces
> Type: Bug
> Versions: Nightly Build
> Environment: MyFaces or RI 1.1_01
> Reporter: Peter Mahoney
> Priority: Minor
> Fix For: Nightly Build
>
> When using an expression for the index attribute for both the radio and
> checkbox components, a ClassCastException is caused when executing the
> following line in both HtmlRadio and HtmlCheckbox:
> Integer v = vb != null ? (Integer)vb.getValue(getFacesContext()) : null;
> The result of an integer expression will be either a java.lang.Long or
> java.math.BigInteger, according to the spec. A fix is to change the above
> line to:
> Number v = vb != null ? (Number)vb.getValue(getFacesContext()) : null;
--
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