|
From: Erwin V. <erw...@er...> - 2005-04-09 13:34:31
|
At the moment SWF does not have any direct binding & validation support of
its own: it just uses the Spring binding and validation infrastructure
(DataBinder, Errors, Validator). I don't think binding and validation is
really a feature that we should build *into* SWF. Instead we need to
integrate with existing solutions.
Could you elaborate on the "XWork validators" a bit?
Erwin Vervaet
erw...@er...
----- Original Message -----
From: "Steven Devijver" <ste...@gm...>
To: <spr...@li...>
Sent: Saturday, April 09, 2005 3:09 PM
Subject: [Springframework-developer] webflow: validators
> Hi guys,
>
> Do you guys support the notion of validators like XWork validators?
> Since WebFlow uses Spring validators could be configured
> declaratively. If you're interested I would be happy to create a BNF
> file for something like this:
>
> { firstname : length of form.firstname > 0 : "First name must not be
> empty" }
> { firstname : length of form.firstname <= 30 : "First name must be no
> longer than 30 characters" }
> { age : form.age is number : "[${form.age}] is not a valid number" }
> { age : form.age > 18 : "You must be 18 years or older" }
> { age : form.age <= 110 : "We do not do business with the undead" }
>
> Kind regards
>
> Steven Devijver
>
> --
> "If you want to be a different fish, you gotta jump out of the school."
> -- Captain Beefheart
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
|