--- Joe Germuska <[EMAIL PROTECTED]> wrote: > At 8:51 AM -0700 10/29/04, David Graham wrote: > >ActionError has been deprecated for some time so we could remove it in > >1.3. ActionErrors only exists because of ActionForm.validate(). I > >figured we would remove ActionErrors, ActionMessages, and ActionMessage > in > >2.0 and replace them with commons-resources. > > > >I wouldn't be opposed to deprecating ActionErrors and changing the > >ActionForm.validate() signature to return ActionMessages in the 1.x > series > >though. Seems like it would reduce confusion even if it's a minor API > >breakage. > > I'd like to do this in Struts 1.3.x to reduce the confusion we've > seen on the struts-user list. Would this suffice: > > 1) make a validateForm(...) method which returns ActionMessages and > which in existing classes delegates to validate(...) > > 2) change the RequestProcessor to call the new method > > Anyone have strong feelings about the method name? Obviously we > can't use "validate".
Rob suggested the same thing quite some time ago except he used doValidate() as the new name. At the time, I thought we would be using commons-resources so I wasn't too keen on adding another validate method. > > I agree that this is relatively minor API breakage, and if think the > 1.3 change provides us suitable "cover" for that -- unless James or > other commons-resources parties think we should go straight to > commons-resources for Struts 1.3. That had been mentioned in some > past roadmaps. I don't think we should wait for commons-resources so we may as well add the new method whatever it's called. David > > Joe > -- > Joe Germuska > [EMAIL PROTECTED] > http://blog.germuska.com > "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn > back; I'll know I'm in the wrong place." > - Carlos Santana > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]