DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26668>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26668 errors messages tags enhancement: make them show only errors/messages ------- Additional Comments From [EMAIL PROTECTED] 2004-02-05 17:21 ------- Because it’s not a convenient way to separate errors and messages in the action _FORM_. The ActionForm is the class that I'm taking about not the Action class. In particular, the validator subclass ValidatorForm that has a validate() method. That method returns a collection of errors. With the changes I proposed it would be possible to add the ActionMessage instances to the errors collection and then show errors and messages separately. Methods "saveErrors()" and "saveMessages()" are defined in the Action class. If I'd use them I'd have to move part of the validation outside of the form's validate method, where it's all encapsulated nicely, into the action w/out any sound reason. Alternatively, there could be another validateXXX() method added to the ValidatorForm that would be executed after existing validate() and return a collection of ActionMessage instances that would be set in the request the same way as saveMessages() does in Action class. Regardless, I do not agree that moving validation logic out of the form's validate method (if it can be done there) to the Action just because of the limitations in the framework is a good answer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]