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

collectionType attribute of selectManyCheckbox not processed correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.6
    • 2.0.13, 2.1.7
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: