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

Input field id in error messages is not properly replaced with label text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.8-SNAPSHOT
    • 1.1.8
    • Message(s)
    • None

    Description

      When we have a label associated with an input field via the 'for' attribute on the label, the client id substitution is not properly handled by org.apache.myfaces.renderkit.html.ext.HtmlMessageRenderer.findInputId().

      The problem is that when an error message is put together by a converter, javax.faces.convert._MessageUtils.getLabel() places the full clientId of the input component into the message text, whereas HtmlMessageRenderer replaces only the id with the label text.

      Attachments

        1. TOMAHAWK-1365.patch
          6 kB
          Val Blant

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              vace117 Val Blant
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: