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

Disabled Value Bug in 4.0 (Erroneous 'value is required' message)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.1, 4.1.0-RC1
    • 4.0.2
    • None
    • None

    Description

      A 'value is required' message will appear erroneously if you submit a required select tag where one of the selections is disabled. The selection submitted is not disabled.

      https://github.com/apache/myfaces/blob/df17470c6a90c42c3554138ec587e3e04f3d6cf9/impl/src/main/java/org/apache/myfaces/renderkit/html/util/HtmlRendererUtils.java#L315

       

      Should be 

      if(convertedValue.equals(submittedValue))

      Attachments

        Activity

          People

            volosied Volodymyr Siedlecki
            volosied Volodymyr Siedlecki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: