Hi there, I am trying to start using struts2 checkboxes via s:checkbox tag:
<s:checkbox name="removeExtraUserdataFieldId" theme="simple" fieldValue="%{id}"/> This renders: <input type="checkbox" name="removeExtraUserdataFieldId" value="3" id="index_storePreferences_action_removeExtraUserdataFieldId"/> <input type="hidden" id="__checkbox_index_storePreferences_action_removeExtraUserdataFieldId" name="__checkbox_removeExtraUserdataFieldId" value="3" /> I was getting an error which sais String setter was required, and not a Integer setter. I didn't understand why as values where ints but now I've changed setter in the action to: public void setRemoveExtraUserdataFieldId(String[] removeExtraUserdataFieldId){} I get a conversion error as when no checkbox are checked, that setter is invoked with a "false" string argument. (If I check one of the checkboxes, no problem). Why is that "false" string used. In old Struts1 no setter was invoked in the ActionForm if no checkbox was checked. thanks for any ideas, Ignacio -- View this message in context: http://www.nabble.com/Integer-s%3Acheckbox-sends-%22false%22-value-to-action-setter-tp22210478p22210478.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org