This page last changed on Dec 14, 2004 by casey.

<ww:checkbox />

Renders an HTML input element of type checkbox, populated by the specified property from the OgnlValueStack.

Sample Usages

JSP
    <ww:checkbox label="'checkbox test'" name="'checkboxField1'" value="aBoolean" fieldValue="'true'"/>

Velocity
    #tag( Checkbox "label='checkbox test'" "name='checkboxField1'" value="aBoolean" fieldValue="'true'" )

HTML (simple template, aBoolean == true)
	<input type="checkbox" name="checkboxField1" value="true" checked="checked" />

Attributes
Name Required Description
id no HTML id attribute
name yes HTML name attribute
label no Text used as label in template
labelposition no Alignment of label (left,right,center)
required no Is field required for form submission
value no Boolean which if true adds 'checked="checked"' to tag
fieldValue yes the actual HTML value attribute of the checkbox
tabindex no HTML tabindex attribute
onchange no HTML onchange attribute
onclick no HTML onclick attribute
cssClass no HTML class attribute
cssStyle no HTML style attribute
theme no Theme to use
template no Name of template to use
Document generated by Confluence on Dec 14, 2004 16:36