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

HtmlRadioRendererBase calls converter method getAsString() not with the object, but with the string version when an validation error occured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-beta
    • General
    • None

    Description

      If you have a <h:selectOneRadio> component with some SelectItems and you select an item, submit it and an validation error occurs, HtmlRadioRendererBase calls org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue() with the submitted value, which is not converted an therefore already the string version of the SelectItem. So the provided converter tries to convert the string version to the string version, which can end in strange behaviour.

      Attachments

        1. HtmlRadioRendererBase.patch
          1 kB
          Jakob Korherr
        2. MYFACES-2356-2.patch
          0.9 kB
          Michael Kurz
        3. MYFACES-2356-3.patch
          0.7 kB
          Leonardo Uribe

        Issue Links

          Activity

            People

              jakobkorherr Jakob Korherr
              jakobkorherr Jakob Korherr
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: