Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1941

Required field message on <af:selectonechoice> component incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0-beta-1
    • 1.2.14-core , 2.0.0-beta-1
    • Components
    • None
    • Linux x86

    Description

      If you have <af:selectOneChoice> that is marked as being required and the user doesn't enter any value, the message thrown is:

      "A selection is required. You must make at least one selection.".

      Instead the message should be:

      "A selection is required. You must make a selection."

      The difference is the "at least one" part of the message.

      The fix is to update trinidad-api/src/main/xrts/org/apache/myfaces/trinidad/resource/MessageBundle.xrts with

      <resource key="org.apache.myfaces.trinidad.UIXSelectOne.REQUIRED_detail">You must make a selection.</resource>

      Attachments

        1. bug10117191.patch
          0.8 kB
          Kentaro Kinebuchi

        Activity

          People

            gabrielle Gabrielle Crawford
            kentarokinebuchi Kentaro Kinebuchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: