Because I'm a big moron and like to overcomplicate things! I better get back home, my village is missing its idiot.
Thanks a million .... > -----Original Message----- > From: David Graham [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 4:57 PM > To: [EMAIL PROTECTED] > Subject: Re: Add blank option to select > > > Why can't you just put this at the beginning of your select > box <option > value=""></option>? > > David > > > > >From: "Bredesen, Chris - NA US HQ Delray" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List (E-mail)" > <[EMAIL PROTECTED]> > >Subject: Add blank option to select > >Date: Mon, 3 Mar 2003 16:50:59 -0500 > > > >Hi All, > > > >I have a proprietary table object which I expose to > html:options via an > >adaptor class that extends AbstractList. The List > implementation gives > >collection-like random access to my proprietary object which > is then used > >to > >build a select box. > > > >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. > > > >Any way to do with Struts 1.0.2? I guess extending the > OptionsTag (haven't > >worked this one out in my head yet but I assume it would be fairly > >straightforward) is the way to go, but if anyone has another > way, I'm all > >ears. > > > >Thanks, > > > >Chris > > > >________________________ > >Chris Bredesen > >Software Architect > >MyTravel USA > >part of MyTravel group > >(561) 266-6154 > >[EMAIL PROTECTED] > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]