RE: html:select - can't display default option

2004-04-23 Thread Paul McCulloch
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

RE: use strings for form beans (was: html:select - can't display default option)

2004-04-23 Thread Hubert Rabago
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

RE: html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
> 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

RE: html:select - can't display default option

2004-04-23 Thread Hubert Rabago
--- 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

RE: html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
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

Re: html:select - can't display default option

2004-04-23 Thread Victor R. Cardona
-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. |

RE: html:select - can't display default option

2004-04-23 Thread Paul McCulloch
- > 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 >

html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
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