GetCheckBoxOptions

Description

This JSP function is a standard function to XML bind checkboxes when modification rules need not be considered.

Syntax

String getCheckBoxOptions(String name)

String getCheckBoxOptions(String name,String a_checked, String a_value)

Input parameters

name - Required. Value of the name attribute for the checkbox input. Can be a binding or a literal.

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.

Note: If only the name parameter is passed, value defaults to the same value passed to the name parameter.

JSP usage

<input type="checkbox" 
<%=getCheckBoxOptions("xml:Order:/Order/Addlinfo/@Country" ,"IND", 
"xml:Order:/Order/Addlinfo/@Country" )%></yfc:i18n>India</yfc:i18n></input>

Resultant HTML

<input type="checkbox" name="xml:Order:/OrderAddlinfo/@Country" 
value="IND">India</input>