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