Hi I tried with the solution of Laurie, and that work's.
Now the problem is that i have two kinds of html:select The first html:select, load an Collection of Value Objects This is the code: <html:select property="categoria"> <html:option value="">---</html:option> <html:options collection="categoriasDescarte" property="id" labelProperty= "nombre"></html:options> </html:select> The field in the ValidatorForm is: private String categoria With this type of html:select i can validate with validator framework. The second type is an htm:select wich input is a list of Enumerations <html:select property="proceso" > <html:option value="">---</html:option> <html:options name="motivosDescarteEnum" ></html:options> </html:select> With this second html:select, i can not validate. The field in the ValidatorForm is private String proceso; Thanks On 9/25/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 9/25/06, Laurie Harper <[EMAIL PROTECTED]> wrote: > You said your form property was of type 'Long'. By default, a null input > value will be turned into 0, so the required validator rule will think > the property has a value. Good catch, Laurie! I completely missed the type... probably didn't read that far. :) -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]