You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shrinivas Parashar <Sh...@symantec.com> on 2012/06/19 18:58:57 UTC

client validation isn't generated when using a VisitorFieldValidator annotation

Hi,
I am using visitorFieldValidator in my action class. Server Side validation is working fine. But the problem is client side validation code is not generated.

One more problem with client side validation seen is the order of validation code generated is different than the expected. (If I move complete validation to action class)

I am using Struts 2.3.1.2 version.

Regards,
Shrinivas

Re: client validation isn't generated when using a VisitorFieldValidator annotation

Posted by Dave Newton <da...@gmail.com>.
On Tue, Jun 19, 2012 at 12:58 PM, Shrinivas Parashar <
Shrinivas_Parashar@symantec.com> wrote:

> I am using visitorFieldValidator in my action class. Server Side
> validation is working fine. But the problem is client side validation code
> is not generated.
>
> One more problem with client side validation seen is the order of
> validation code generated is different than the expected. (If I move
> complete validation to action class)
>

AFAIK not all validation models are supported on the client side, as per
[1].

Note particularly the blue (i) icon that states:

> JavaScript client validation is not available for visitor validations

Dave

[1]
http://struts.apache.org/2.3.1.2/docs/pure-javascript-client-side-validation.html