You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Peter Mahoney (JIRA)" <my...@incubator.apache.org> on 2005/04/13 11:54:17 UTC
[jira] Created: (MYFACES-186) x:radio and x:checkbox cause ClassCastException
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
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira