Wicket Remove
compref
Source code

wicket.markup.html.form.CheckBox

[back to the reference]

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.

I want it checked!


Behind the Scenes

Example HTML

<input type="checkbox" wicket:id="bool" />

Example Code

    // add a check box component that uses the model object's 'bool' property.
    form.add(new CheckBox("bool"));

Further examples & and comments/explanations may be available in the source code.