Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6621

Supply field information to violation messages in editor

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      The invalidation framework in the CMS has unparameterized violation messages like "A required field is not present" and "A string value is empty". Having the field's title in that message will improve user experience.

      On investigation I found

      • the object org.hippoecm.frontend.validation.Violation supports parameters to format messages in the UI but such parameters are never provided
      • AFAIK getting to the internationalized field name is not easy. From the validator we can get to the FieldDescriptor but I don't know how you can get from there to the caption/translator.id of the field/property plugin

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: