Getting checkboxes to work correctly with Spring Form validation

I had a problem recently handling checkboxes within the Spring form validation framework. The checkbox would fail to retain its on state when the form was submitted and the validation failed. The checkbox was tied to a boolean attribute in the form object, so I’d followed the standard method of binding a field [...]