Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3522

collectionType attribute of selectManyCheckbox not processed correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.0.13, 2.1.7
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat 6.0.35
      myFaces 2.1.6

      Description

      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.

        Attachments

        1. z.war
          3 kB
          Michael Heinen

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              mheinen Michael Heinen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: