RE: Struts2 field validation and conversion

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

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 means

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 @Valida