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

Conversion error for select items of type String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 4.0.2, 4.1.0-RC1, 5.0.0
    • General
    • None

    Description

      An error occurs when using select items of type String in combination with the OmniFaces SelectItemsIndexConverter. MyFaces seems to attempt to convert the submitted value twice, which leads to a NumberFormatException on the second try.

      I suspect the following if-statement in org.apache.myfaces.core.api.shared.SelectItemsUtil to be the culprit, but of course have no idea why it is needed in other cases or how to fix the problem:

      Please see the attached reproducer, which produces the error when selecting a value in the SelectOneMenu when run with 

      mvn clean jetty:run -Pmyfaces40

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            mkomko Manuel K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: