struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru BARBAT" <alexandrubar...@ucs.ro>
Subject Re: combobox - howto eliminate the optional text-field?
Date Thu, 24 Jan 2008 08:27:36 GMT
hi,
you have to use

<s:select label="Group" ...

see example in  "struts2-showcase-2.0.11" application.

----- Original Message ----- 
From: "Dave Newton" <newton.dave@yahoo.com>
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 <xianwinwin@gmail.com> 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org



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


Mime
View raw message