RE: Re-use field validations?

2005-09-04 Thread David G. Friedman
for adding different 'groups' (one or more from what I've read) of validations to any set. Regards, David -Original Message- From: Leo Asanov [mailto:[EMAIL PROTECTED] Sent: Sunday, September 04, 2005 10:56 PM To: Struts Users Mailing List Subject: Re: Re-use field validations?

Re: Re-use field validations?

2005-09-04 Thread Leo Asanov
Hi! I was looking for this kind of functionality some time ago and didn't find any standard way of doing reusable validators. What I did was more like a hack, but it worked: 1. For server side validation. Overwrite validate() method of FormBean class with something like this: public ActionErro

Re: Re-use field validations?

2005-08-29 Thread Don Brown
I should also add that you cannot use external XML entities in validator XML files for any released version of Struts. However, Struts 1.3, as of tonight, will include code, dependent on Validator 1.2, which will allow their use. Don On 8/29/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > Fy

Re: Re-use field validations?

2005-08-29 Thread Hubert Rabago
Fyi, Struts 1.3 is moving to a Validator 1.2 dependency. This version includes support for the form "extends" attribute which provides just what you were asking for. Hubert On 8/26/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Quinn Stone wrote: > > Is there any way to define the validation for

Re: Re-use field validations?

2005-08-26 Thread Laurie Harper
Quinn Stone wrote: Is there any way to define the validation for a common form field once in validation.xml and re-use the validation in other blocks? This would allow validation.xml to be updated in one place rather than many places, if validation requirements change for a field that is used o

Re-use field validations?

2005-08-26 Thread Quinn Stone
Is there any way to define the validation for a common form field once in validation.xml and re-use the validation in other blocks? This would allow validation.xml to be updated in one place rather than many places, if validation requirements change for a field that is used on many forms. It woul