Hi

See the solution for RequiredFieldValidator

http://www.roseindia.net/answers/viewanswers/31.html


Best Regards



-----Original Message-----
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 20, 2008 4:15 AM
To: Struts Users Mailing List
Subject: Re: Struts2 field validation and conversion


Filipe David Manana wrote:
> So my question, is the RequiredFieldValidator is applied after conversion?
> If conversion fails, the RequiredFieldValidator catches a blank value for
> the field?
>
>   
Yes, validation is performed on your action instance, after the 
parameters have all been set, which means after all conversion.  It 
should be seeing a null value.
You could setup the first case by setting the Long value to -1 within 
you converter in the case of a conversion error.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to