I have a list of search filters that I am displaying on the page where
each is a checkboxlist.  I am implementing this as such:

<s:iterator value="searchCriteria.filters" status="filterStatus">
        <s:checkboxlist 
        
name="searchCriteria.filterMap['%{fieldName}'].selectedFilters" 
                value="%{selectedFilters}"

                list="filterItems" listKey="value" listValue="label"/>
</s:iterator>

Everything works great except for one small problem.  I do not seem to
be able to deselect all of the values for a filter.  For example, if one
of my filters is Status and the check box values are Active and Inactive
then:

- I can select both Active and Inactive.
- I can leave both Active and Inactive deselected.
- I can default to have Active selected and then deslect it and then
select Inactive.
- I CANNOT default to have Active selected and then deselect it. 

It appears that if a checkbox was originally set you can change the
value as long as you change it to some other value.  However if I do not
set the field to any value at all, then it keeps the previous or default
value.

I am not sure what is occurring here.  Does anyone have any ideas on how
I can overcome this?

Thank you!
Ken

Reply via email to