This JSP function XML binds checkboxes when modification rules need to be considered.
String yfsGetCheckBoxOptions(String name,String a_checked, String a_value, String allowModBinding)
name - Required. Path in the target XML to which the value in the input text is sent when the form is posted. Through the Service Definition Framework, the target XML is then passed to the appropriate API.
checked - Required. When the value of the value attribute is equal to this value, the checked attribute is set to true.
value - Required. Value of the value attribute for the checkbox input. Can be a binding or a literal.
allowModBinding - Required. Binding string that points to a set of elements containing modification types that are permitted for the current status.
<input class="checkbox" type="checkbox"
<%=yfsGetCheckBoxOptions("xml:/Order/@ChargeActualFreightFlag",
"xml:/Order/@ChargeActualFreightFlag","Y","xml:/Order/AllowedModifications")
%>/>