You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Heinen (Commented) (JIRA)" <de...@myfaces.apache.org> on 2012/04/04 12:50:22 UTC

[jira] [Commented] (MYFACES-3522) collectionType attribute of selectManyCheckbox not processed correctly

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

Michael Heinen commented on MYFACES-3522:
-----------------------------------------

Thanks for the quick fix Leonardo!!!

Is it fixed for myfaces and for tomahawk selectManyCheckbox?
I just saw two checkins for trunk and branch 2.0 but there are two different _SharedRendererUtils implementation, or?
javax.faces.component._SharedRendererUtils and org.apache.myfaces.shared_tomahawk.renderkit_SharedRendererUtils
                
> collectionType attribute of selectManyCheckbox not processed correctly
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-3522
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3522
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>         Environment: Tomcat 6.0.35
> myFaces 2.1.6
>            Reporter: Michael Heinen
>            Assignee: Leonardo Uribe
>            Priority: Critical
>             Fix For: 2.0.13, 2.1.7
>
>         Attachments: z.war
>
>
> The collectionType attribute of h:selectManyCheckbox is not processed correctly.
> The value attribute of selectManyCheckbox points to a Map with an ArrayList containing Strings as values, representing the selected values.
> The checkboxes are initially correctly checked, but after ajax submission the model (Map<Sting,Object) contains StringArrays instead of ArrayLists.
> This worked well since JSF 1.0, but it does not work with 2.1 anymore.
> It can be easily reproduced with MyFaces only.
> I see this as critical because ClassCastException are thrown as a result in application code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira