You can find an example at my blog:
http://www.samaxes.com/2008/10/23/stripes-and-jquery-ajax-forms-and-http-session-validation/

--
Samuel Santos
http://www.samaxes.com/


On Wed, Apr 15, 2009 at 1:58 AM, ziscloud <[email protected]> wrote:

>
> Hi all,
>
> In normal way, we can use the annotation to validate the form field, like
> this:
>
> @ValidateNestedProperties({
>    @Validate(field="line1", required=true, minlength=5, maxlength=50),
>    @Validate(field="line2", minlength=5, maxlength=50),
>    @Validate(field="zip", required=true, mask="\\d{5}(-\\d{4})?")
> })
>
> but this way is not suitable when I validate the form field via ajax, in
> this situation we can define an method like this:
>
> @ValidationMethod public void validateSomething(ValidationErrors errors) {
> ... }
>
> for every field we need to validate, but this way is not comfortable :-(.
>
> whether there is another way to validate form field via ajax other than
> define one method for every field.
>
> anybody can help?
>
> Best regards!
> --
> View this message in context:
> http://www.nabble.com/Whether-there-is-another-way-to-vaildate-field-via-ajax.-tp23050703p23050703.html
> Sent from the stripes-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to