I have a Roo generated jspx form with a checkbox as follows:
<field:checkbox disableFormBinding="true" field="isCompleteTrue" id="f_com_novexinc_orderhawk_shrink_ShrinkMaster_i sCompleteTrue" z=""/>
When the box is checked, the controller gets the request parameter as:
&isCompleteTrue=on
When it is unchecked, the parameter is missing, and I get:
Required Boolean parameter 'isCompleteTrue' is not present
How can I modify the @RequestParam("isCompleteTrue") Boolean isCompleteTrue,
in the controller parameters to make this optional?
Or, more simply put, should I not get:
&isCompleteTrue=off
when the checkbox is unchecked?


Reply With Quote
