Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2019

Param uses an invalid message key when throwing validation error

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR1
    • Fix Version/s: 2.0.0.CR2
    • Component/s: Core
    • Labels:
      None
    • Affects:
      Compatibility/Configuration
    • Estimated Difficulty:
      Low

      Description

      When a required value is missing on a page parameter, the Param class throws a validator exception. When creating the FacesMessage object, it references a non-standard JSF message key for the detail:

      javax.faces.component.UIInput.REQUIRED_detail

      The javax.faces.component.UIInput.REQUIRED key does not have a detail. Instead, the detail should be set to null.

      Instead of getting the required message, the user is getting an exception that the detail key cannot be found.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.j.allen Dan Allen
                Reporter:
                dan.j.allen Dan Allen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified