Hey Jerry, You can achieve this by placing your down arrow button next to your single-line select box. In the button's onClick parameter, call a javascript method that change's the elements size attribute from 1 to 10 or whatever. That should do the trick. You'll probably want to code the method so that a subsequent click on the button will reduce the select box back to size=1 as well as change the button's label appropriately.
If you're unsure how to do this lemme know and perhaps I can throw the code together for you. Dan -----Original Message----- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 2:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] HTML Select box <[EMAIL PROTECTED] /> Thanks to everyone who responded. Let me clarify on this: If I set my <html:select/> to use a size=?? and set multiple="true", I can indeed select multiple options. The problem is, when I set the size parameter to something like 10, I end up with a 10 items displayed in a rather large box (I know, this is how it works!). What I would rather have (and maybe I simply can't do it) is to have a single line displayed with a 'down arrow' (like what you would get without using the multiple="true" and with size="1"). When you clicked on the down arrow, the box would expand downward, and the user would then be able to select multiple options by holding down the CTRL key. Submitting the selection would send all of the selected options to my Action. Does this make any more sense? Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -----Original Message----- > From: Brice Ruth [mailto:[EMAIL PROTECTED] > Sent: Friday, December 19, 2003 2:03 PM > To: Struts Users Mailing List > Subject: Re: [OT] HTML Select box > > > right, but that's in a multi-select box, not in a drop-down select. > > Craig R. McClanahan wrote: > > >Quoting Brice Ruth <[EMAIL PROTECTED]>: > > > > > > > >> From a GUI perspective, how would you select multiple things in a > >>drop-down? I can't actually recall ever seeing this type of widget > >>anywhere (irrespective of HTML). > >> > >> > >> > > > >In HTML, this is triggered by the "multiple" attribute on > the <select> element. > >If you're using <html:select> tag, must add multiple="true". > > > >In a browser, it's the usual technique for multiple > selections -- shift-click > >selects everything between the previous point and the > current point, while > >control-click adds the individual item you're currently pointing at. > > > > > > > >>Could you send an example? > >> > >> > >> > > > >Craig > > > > > > > > > >>Jerry Jalenak wrote: > >> > >> > >> > >>>Hi All, > >>> > >>>Can't seem to find a way to do this, even though I've seen > it done (I > >>>think). What I need is a HTML select box where the size > parameter=1 (so I > >>>get a true drop-down, not a scrolling box) AND the ability > to select > >>>multiple options within the select box. Right now if I > set the multiple > >>>parameter I get a scrolling box. I'm using an > optionsCollection tag to > >>>generate my option list (not that I think it has anything > to do with my > >>>problem 8-) I suspect there is a JavaScript solution out > there, but I > >>>can't seem to google it. Does anyone have any ideas? > >>> > >>>TIA! > >>> > >>>Jerry Jalenak > >>>Development Manager, Web Publishing > >>>LabOne, Inc. > >>>10101 Renner Blvd. > >>>Lenexa, KS 66219 > >>>(913) 577-1496 > >>> > >>>[EMAIL PROTECTED] > >>> > >>> > >>>This transmission (and any information attached to it) may > be confidential > >>> > >>> > >>and > >> > >> > >>>is intended solely for the use of the individual or entity > to which it is > >>>addressed. If you are not the intended recipient or the > person responsible > >>> > >>> > >>for > >> > >> > >>>delivering the transmission to the intended recipient, be > advised that you > >>>have received this transmission in error and that any use, > dissemination, > >>>forwarding, printing, or copying of this information is strictly > >>> > >>> > >>prohibited. > >> > >> > >>>If you have received this transmission in error, please > immediately notify > >>>LabOne at the following email address: > [EMAIL PROTECTED] > >>> > >>> > >>>----------------------------------------------------------- > ---------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: > [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >>-- > >>Brice D. Ruth > >>Sr. IT Analyst > >>Fiskars Brands, Inc. > >> > >> > >>------------------------------------------------------------ > --------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > Brice D. Ruth > Sr. IT Analyst > Fiskars Brands, Inc. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]