Easier than I thought, thank you very much.
On Thu, Feb 4, 2010 at 9:08 AM, Morten Matras <kodekon...@gmail.com> wrote:
> You can create a property with getters and setters in the actionBean named
> tireType that is a collection.
>
> private List<String> tireType;
>
> getters and setters.
>
> Then after the form is submitted you can access the selected values as
> entries in the list.
>
> Regards
>
> Morten Matras
> Denmark
> http://www.blobcom.com
>
> 2010/2/4 Michal Kováč <mkak...@gmail.com>
>
>> Hello,
>>
>> I'm just starting with Stripes and I'm trying to make filter for a list of
>> items using checkboxes. I guess this will be pretty basic, but I'm yet to be
>> enlightened ;)
>> How do I handle multiple checked checkboxes with my actionbean? Lets say
>> user checks offroad and sport tireType, what is the best way to get to that
>> information?
>>
>> <s:form id="filters" beanclass="web.ProductActionBean">
>> <s:checkbox name="tireType" id="tTclassic" value="classic" />
>> <s:label for="tTclassic">classic</s:label>
>> <s:checkbox name="tireType" id="tToffroad" value="offroad" />
>> <s:label for="tToffroad">offroad</s:label>
>> <s:checkbox name="tireType" id="tTsport" value="sport" />
>> <s:label for="tTsport">sport</s:label>
>> <s:submit class="button" name="applyFilters" value="Apply
>> Filters"/>
>> </s:form>
>>
>> Thank you for any advice.
>>
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the
>> business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
> Morten Matras
> Consultant
> Blob Communication ApS
> Svendsagervej 42
> DK-5240 Odense NØ
> P: (+45) 76 6-5-4-3-2-1
> W: www.blobcom.com
> E: morten.mat...@gmail.com
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users