Fork me on GitHub
<< back to Core Developers Guide Edit on GitHub

Checkbox Interceptor


is in the


. It checks each form parameter submitted to the action and if it finds one with a prefix of


it inserts a value for a parameter whose name is derived from the suffix to


if it does not exist. The default value inserted is


but this can be changed by setting the


parameter on the interceptor.

This means that a checkbox can be accompanied by a hidden input with the same name but a prefix of


so that if the checkbox is not checked on the form the action will still receive a value rather than the default HTML action of not providing a value for unchecked checkboxes.


Extending the Interceptor