You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by appfused <da...@googlemail.com> on 2007/04/01 00:37:46 UTC
[S2]Struts 2 Comboboxes
How do i do the equivalent of the code segment below in struts 2?
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html:select size="1" property="searchMask">
<html:option value="0">Reviews</html:option>
<html:option value="1">Interviews</html:option>
<html:option value="2">Gig Dates</html:option>
<html:option value="3">Small Talks</html:option>
</html:select>
--
View this message in context: http://www.nabble.com/-S2-Struts-2-Comboboxes-tf3499362.html#a9772999
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
Re: [S2]Struts 2 Comboboxes
Posted by Dave Newton <ne...@yahoo.com>.
--- appfused <da...@googlemail.com> wrote:
> Cool that's what im using but i thought that someone
> would say something different e.g
I'm not sure why someone would suggest the combobox
when you asked for the S2 equivalent of an
<html:select.../>, but okay.
> Have you used [<s:combobox.../>] before?
> i couldn't get it to work
How did it not work?
I just did a quick sanity-check and it seemed to work
fine; it puts the value of the list option you select
into its associated text field, which is what it's
supposed to do.
d.
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2]Struts 2 Comboboxes
Posted by appfused <da...@googlemail.com>.
Cool that's what im using but i thought that someone would say something
different e.g
http://struts.apache.org/2.0.6/struts2-core/apidocs/index.html?org/apache/struts2/components/ComboBox.html
ComboBox
Have you used this tag before? i couldn't get it to work
Dave Newton-4 wrote:
>
> --- appfused <da...@googlemail.com> wrote:
>> in struts 2?
>>
>> <%@ taglib uri="/tags/struts-html" prefix="html" %>
>>
>> <html:select size="1" property="searchMask">
>> <html:option value="0">Reviews</html:option>
>> <html:option value="1">Interviews</html:option>
>> <html:option value="2">Gig Dates</html:option>
>> <html:option value="3">Small Talks</html:option>
>> </html:select>
>
> http://struts.apache.org/2.0.6/docs/select.html
>
> The documentation is your friend (usually).
>
> More or less, copied directly from the example at the
> above link, but with your values typed in:
>
> <s:select
> theme="simple"
> size="1"
> list="#{'0':'Reviews', '1':'Interviews', '2':'Gig
> Dates', '3':'Small Talks'}"
> value="searchMask"
> />
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> The fish are biting.
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-S2-Struts-2-Comboboxes-tf3499362.html#a9773190
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
Re: [S2]Struts 2 Comboboxes
Posted by Dave Newton <ne...@yahoo.com>.
--- appfused <da...@googlemail.com> wrote:
> in struts 2?
>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
>
> <html:select size="1" property="searchMask">
> <html:option value="0">Reviews</html:option>
> <html:option value="1">Interviews</html:option>
> <html:option value="2">Gig Dates</html:option>
> <html:option value="3">Small Talks</html:option>
> </html:select>
http://struts.apache.org/2.0.6/docs/select.html
The documentation is your friend (usually).
More or less, copied directly from the example at the
above link, but with your values typed in:
<s:select
theme="simple"
size="1"
list="#{'0':'Reviews', '1':'Interviews', '2':'Gig
Dates', '3':'Small Talks'}"
value="searchMask"
/>
d.
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org