hi, one update: CASE 1: when i write as: <s:iterator status="s" value="languageMap" > <s:checkbox label="%{top.value}" value="%{selectedClientLangList.contains(top.key)}" id="%{top.key}" fieldValue="%{top.key}" name="selectedClientLangList" theme="ajax" /> </s:iterator>
i see in html source: <input type="hidden" name="__checkbox_..." CASE 2: but if u use: <s:checkboxlist label="Client Language" list="languageMap" name="selectedClientLangList" /> but this doesnt produce : __checkbox_ named fields at all! the problem is when i write ajax validations: the CASE 2 doesnt produce onblur() functions and hence doesnt get validated. The CASE1 produces onblur() functions but this fellow doesnt produce __checkbox_ names hiddenfields and hence the checkbox interceptor has no effect. it seems like both of these cannot happen simultaneously or i m going wrong somewhere.... any help??? cheers, ravi ravi_eze wrote: > > hi, > > i have a form which has multiple checkbox lists in it. by default in each > of the checkboxes few of them are selected. The problem is: when user > unchecks all the boxes and submits the form is getting submitted with the > default values. > > When i am using checkbox interceptor, and view source of the page i see > the __checkbox_ is appearing to first of the list and not to all of the > checkbox -lists! and even this gets submitted as a list with values > [false] instead of [] list. Added, this is not happening to all check > boxes list. > > it seems like the checkbox interceptor is happening for the 1st checkbox > list and not to all. more over i need an empty list to be submitted > instead of a list with [false] in it. is this not possible? > -- View this message in context: http://www.nabble.com/checkbox-interceptor-tp14469895p14488746.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]