[
https://issues.apache.org/struts/browse/WW-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Holmes resolved WW-2037.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
This has been committed in XWork and will be part of the XWork 2.1 release.
See:
http://jira.opensymphony.com/browse/XW-541
> add a clearErrors() and clearMessages() method to ActionSupport
> ---------------------------------------------------------------
>
> Key: WW-2037
> URL: https://issues.apache.org/struts/browse/WW-2037
> Project: Struts 2
> Issue Type: Improvement
> Components: API
> Affects Versions: 2.1.0
> Reporter: James Holmes
> Assignee: James Holmes
> Priority: Minor
> Fix For: 2.1.0
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.