RE: Struts2 field validation and conversion

2008-02-21 Thread Rose India (http://www.roseindia.net)
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

Struts2 field validation and conversion

2008-02-19 Thread Filipe David Manana
Hi, I am using struts 2.0.11 and I am wondering about the following: I have an action with a Long property that is using both validation and conversion (a custom converter). I have a RequiredFieldValidator and a ConversionErrorFieldValidator set for that property, as follows: @Conversion

Re: Struts2 field validation and conversion

2008-02-19 Thread Jeromy Evans
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