Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1653

selectManyPicklist broken if values contain comma

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.15-SNAPSHOT
    • None
    • None

    Description

      Using selectManyPicklist on List<String>, it fails if values contain comma :

      <t:selectManyPicklist size="5" id="typesPickList" value="#

      {bean.types}

      ">
      <f:selectItems value="#

      {editBean.types}

      " />
      </t:selectManyPicklist>

      On form submission I get : Validation Error: Value is not valid

      It seems that selected values are concatenated in an input type=hidden, with the comma as the separator. The decoding in HtmlPicklistRenderer#decode() split on comma, so the decoded values are not good.

      Attachments

        Activity

          People

            Unassigned Unassigned
            npeninguy Nicolas PENINGUY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: