struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heidy Gutiérrez Guzmán" <>
Subject Re: Validate an hmt:select with validator framework
Date Tue, 26 Sep 2006 01:26:22 GMT

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=


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>


With this second html:select, i can not validate.

The field in the ValidatorForm is private String proceso;


On 9/25/06, Wendy Smoak <> wrote:
> On 9/25/06, Laurie Harper <> 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:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message