Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2913

Message tags to expose count of messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.6
    • 1.4.0
    • Tag Libraries
    • None

    Description

      One nice enhancement of the Struts' html:errors and html:messages would be that while generating the defined header or footer the number of available messages are used as message arguments. This would facialate a header like "There are 3 error messages" or "There is 1 error message" using a message pattern like this:
      errors.header=There are

      {0}

      error

      {0,choice,1#message|1<messages}

      .
      This enhancement should be totally backward compatible since it's currently not possible to add arguments to headers and footers so nobody should have reserverd argument 0 for something.

      Attachments

        Activity

          People

            pbenedict Paul Benedict
            dpasek Denis Pasek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: