We didn't do it earlier because we wanted to use commons-resources for
message passing.  That hasn't happened so we may as well add the
validateForm() method and deprecate validate().

David

--- Joe Germuska <[EMAIL PROTECTED]> wrote:

> In order to push forward on full deprecation of ActionErrors, I 
> propose adding the following method to ActionForm:
> 
> public ActionMessages validateForm(ActionMapping mapping,
>                                                 HttpServletRequest request) {
> 
>          return validate(mapping, request);
> 
>      }
> 
> and then changing one line in the Request Processing chain:
> 
>          ActionMessages errors = form.validate(mapping, request);
> to
>          ActionMessages errors = form.validateForm(mapping, request);
> 
> I'm not sure now why we haven't done this earlier.  Someone suggested 
> it on one of the lists a while ago and it seemed clear once I saw it, 
> but I haven't had time to do anything about it.
> 
> My inclination is to do this only on the 1.3 (HEAD) branch, and to 
> make the change in RequestProcessor.java even though it is slated for 
> obsolescence, and then also to make the change in 
> o.a.s.chain.AbstractValidateActionForm (which actually still uses 
> ActionErrors, actually.)
> 
> If it didn't seem strange that it hasn't been done already, I might 
> have just gone ahead and done it without raising the question -- so 
> I'm wondering if I'm missing something?
> 
> Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to