Original Message-
> From: Matthew Hegarty [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 3:35 PM
> To: 'Struts Users Mailing List'
> Subject: RE: html:select - can't display default option
>
>
> > If you want the option with a '' value
Form values really should be strings. There are reasons for this, and
they've been discussed lots of times in this list already. Use Strings for
your form beans and match the value in the form bean with the value in the
HTML form. Actually, your scenario is an illustration of why they really
sho
> If you want the option with a '' value to be selected, set the corresponding
> property in your bean to ''.
I can't because the type is Boolean.
I was wanting to display the empty option if the value returned is null.
-
To unsu
--- Matthew Hegarty <[EMAIL PROTECTED]> wrote:
> Thanks for the responses.
> Still not quite there though...
>
> Paul wrote:
> > Try not explicitly setting the value attribute.
>
> This works insofar as the drop-down displays correctly if the value is true
> or false, but if the value is null, t
To: Struts Users Mailing List
Subject: Re: html:select - can't display default option
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew Hegarty wrote:
| Hi all
|
| I am using , and trying to get the drop-down to default
to a Boolean value in a bean, ie true, false, or blank if the bean
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew Hegarty wrote:
| Hi all
|
| I am using , and trying to get the drop-down to default
to a Boolean value in a bean, ie true, false, or blank if the bean is null.
| My bean (MyBean) contains the method getMyValue() which returns a
Boolean object.
|
-
> From: Matthew Hegarty [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 2:14 PM
> To: 'Struts Users Mailing List'
> Subject: html:select - can't display default option
>
>
>
> Hi all
>
> I am using , and trying to get the drop-down to
>
Hi all
I am using , and trying to get the drop-down to default to a Boolean
value in a bean, ie true, false, or blank if the bean is null.
My bean (MyBean) contains the method getMyValue() which returns a Boolean object.
In the code snippet below, the c:out statement confirms that the value of
8 matches
Mail list logo