A Checkbox can be used to work with boolean values. If the checkbox is checked, it means that the model value is true. It is false otherwise.
<input type="checkbox" wicket:id="bool" />
// add a check box component that uses the model object's 'bool' property.
form.add(new CheckBox("bool"));