cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Man <>
Subject Re: Patch: AbstractValidatorAction
Date Mon, 28 May 2001 17:21:19 GMT
On Mon, May 28, 2001 at 03:22:25PM +0200, Christian Haul wrote:
> Hi,
> the attached patch adds the following to
>     * equals-to supported by Long & Double
>     * equals-to-param supported by Long & Double
>     * min as minimum value supported by Long & Double
>     * max as maximum value supported by Long & Double
>     * min-len as minimum string length supported by String
>     * max-len as maximum string length supported by String
>     * matches-regex as POSIX regular expression to match against String
>     * all apart equals-to(-param)? can be overridden by redefinition
>       in a constraint-set. Rationale: For a database applikation it is
>       sensible to define e.g. a maximum length for an attribute
>       globally. This might be as well valid for a regular
>       expression. On some occasions (e.g. a search form) one might
>       like the user to be less constrained.

> It would be nice if the attached patch could be applied. I hope I
> didn't break too many coding conventions.
briefly looking through the patch, this should be o.k.

> Since I believe in client-side checking to improve usability I'd like
> to use the same descriptor.xml file to generate appropriate UI
> elements (e.g. set the MAXLEN attribute for a text input field or
> set a trigger to a javascript routine). I wounder what the best way
> would be. Somehow call the AbstractValidatorAction from a TagLib
> through an interface class?

just writing a taglib that goes throught the xml file using Avalon APIs, 
there is no need for AbstractValidator

> 	Chris.
> -- 
> C h r i s t i a n       H a u l
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

P.S. can someone apply the patch, I'm out of the ssh access to
since the last security cleanup and don't know when will be back again ;-)

"Only dead fish swims with a stream"
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

To unsubscribe, e-mail:
For additional commands, email:

View raw message