Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2037

add a clearErrors() and clearMessages() method to ActionSupport

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: "New" API
    • Labels:
      None

      Description

      Currently ActionSupport has a clearErrorsAndMessages() method. I think it will be useful to be able to clear errors and/or messages individually. It's not always the case that you want to clear both. See the message thread below:

      http://www.nabble.com/-s2--no-result-defined-error-after-failed-validation---can-someone-help--tf4030311.html

      I believe the user wants to be able to clear errors and not necessarily messages. I have found a need for this myself recently and would like to implement or see it implemented by someone else.

      I would commit the code myself to do this, but it requires an update to the XWork code. Not sure what the process is to get XWork code updated.

        Attachments

          Activity

            People

            • Assignee:
              jholmes James Holmes
              Reporter:
              jholmes James Holmes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: