hi, you have to use <s:select label="Group" ...
see example in "struts2-showcase-2.0.11" application. ----- Original Message ----- From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Wednesday, January 23, 2008 6:21 PM Subject: Re: combobox - howto eliminate the optional text-field? > Isn't that a select? > > http://struts.apache.org/2.x/docs/select.html > > --- xianwinwin <[EMAIL PROTECTED]> wrote: > > > > > hi all, > > I have the following code: > > > > <s:combobox > > label="Group" > > name="groupAssociation" > > theme="simple" > > list="#{'red':'red','green':'green','blue':'blue'}" > > headerKey="-8" > > readonly="true" > > headerValue="--- Please Select ---" > > emptyOption="false" > > value="green" /> > > > > > > this provides the end user a comboBox with a textfield (user can input his > > own input not from the list) > > > > Q: How can I have a simple combobox WITHOUT the textfield and by that force > > the end-user to choose only from the list. > > > > thanks! > > > > > > -- > > View this message in context: > > > http://www.nabble.com/combobox---howto-eliminate-the-optional-text-field--tp15045084p15045084.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]