struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Galbreath" <mark_galbre...@qat.com>
Subject RE: Add blank option to select
Date Mon, 03 Mar 2003 23:27:55 GMT
Wow!  That may be the sexiest message I have ever seen in 3 years of struts
users-list!  You go, girl!

-----Original Message-----
From: Wendy Smoak [mailto:Wendy.Smoak@asu.edu] 
Sent: Monday, March 03, 2003 5:22 PM
To: 'Struts Users Mailing List'
Subject: RE: 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.

This is what I do for Struts 1.1 with the EL tags, but maybe it will work or
can be adapted:

 <html-el:select property="state">
          <html-el:option value="">Any State</html-el:option>
          <html-el:options collection="states" property="key"
labelProperty="value"/>  </html-el:select> 

Can you use both an 'option' and an 'options' tag with 1.0?



---------------------------------------------------------------------
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