struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heidy Gutiérrez Guzmán" <heidyg...@gmail.com>
Subject Re: Validate an hmt:select with validator framework
Date Mon, 25 Sep 2006 21:34:05 GMT
Hi

I try <html:option value="">---</html:option>. and that also does't work

If you have any more idea, i would be grateful


On 9/25/06, Chris Pratt <thechrispratt@gmail.com> wrote:
>
> According to your code, the default value is the String "null", not ---.
> You might want to try setting that to an empty value, e.g.
>
> <html:option value="">---</html:option>
>
> (*Chris*)
>
> On 9/25/06, Heidy Gutiérrez Guzmán <heidyguti@gmail.com> wrote:
> >
> > Hi
> >
> > I need to validate an html:select with validator framework
> >
> > This is the code that i have
> >
> >
> > <html:select property="categoria" styleClass="editGrande">
> >
> > <html:option value="null">---</html:option>
> >
> > <html:options collection="categoriasDescarte" property="id"
> labelProperty=
> > "nombre"></html:options>
> >
> > </html:select>
> >
> > I need have a default value that is " ---" , but i need validate that
> this
> >
> > value does'nt selected.
> >
> > The code in the Validator form is
> > private Long categoria;
> >
> > I tried to use the required validation, but that does'nt work, i think
> > because the html:select have the "---" default value
> >
> >
>
>

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