DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29679>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29679

Validator returns ActionErrors instead of ActionMessages





------- Additional Comments From [EMAIL PROTECTED]  2004-06-18 19:24 -------
I'm not exactly following you.  First, saveErrors(request, ActionMessages) isn't 
deprecated.  Only 
saveErrors(request, ActionErrors).  

Second, what exactly do you mean by the "validator" in "the Validator uses saveErrors" 
 
Perhaps you mean that if you call "form.validate()" in your action, you get an 
ActionErrors back, and 
then you can't save the result without getting a deprecation warning.  In this case, 
you can either live 
with the deprecation warning, write a method in your action which converts an 
ActionErrors object to an 
ActionMessages object, or possibly add new methods to ActionForm and its subclasses 
that have a 
different name than "validate" so that they can take the same arguments and return a 
different type.

If it's this last, then I suppose we could put in an enhancement request to help 
people avoid the 
deprecation warnings... but IMO, it doesn't seem like it's worth a whole ton of sweat

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to