struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Betancourt" <str...@cmbsystems.com>
Subject Re: Add blank option to select
Date Mon, 03 Mar 2003 23:23:09 GMT
Do you mean that he should use a plain <option value="">...</option> or use
<html:option>...</html:option> instead?

There are reasons to use a null value in something like:
<html:option value="">...</html:option>

When the form is submitted, you're guaranteed a null string will be passed
in the actionForm if nothing is selected.  I wouldn't want to check for a
"..." to know that nothing was picked from the list.

Leaving the option label empty is not intuitive enough for a user to know to
pick something so most likely a "..." or "...select one" label will make
more sense.

-c


----- Original Message -----
From: "David Graham" <dgraham1980@hotmail.com>
To: <struts-user@jakarta.apache.org>
Sent: Monday, March 03, 2003 5:06 PM
Subject: RE: Add blank option to select


> There's no point in using the taglib to output a null valued <option> tag.
>
> David
>
>
>
> >From: "James Childers" <jchilders@hotels.com>
> >Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> >To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> >Subject: RE: Add blank option to select
> >Date: Mon, 3 Mar 2003 16:04:46 -0600
> >
> >
> >I just had to do this about 30 minutes ago. All I did was:
> >
> ><html:option value=""><html:message key="key.value" /></html:option>
> >
> >Quick & dirty, and it doesn't add anything to your List. But I didn't
feel
> >that adding empty entries to my List was something I really wanted to do.
> >
> >-= J
> >
> > > -----Original Message-----
> > > From: Bredesen, Chris - NA US HQ Delray
> > > [mailto:cbredesen@mytravelco.com]
> > > Sent: Monday, March 03, 2003 3:51 PM
> > > To: Struts Users Mailing List (E-mail)
> > > Subject: Add blank option to select
> > >
> > > What I need is to add a blank option to the select that is
> > > not present in my
> > > data.  Since my List implementation is just an adaptor, and
> > > not a new data
> > > structure, I cannot just add another member.  I tried doing a
> > > Union in my
> > > SQL query to tack on a blank record but the crap DB API won't have it.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message