This is necessary because a checkbox if unchecked, when postback,
does not have direct mapping between post data and the checkbox name.
This method overrides the parent implementation and is invoked before render.
public function onPreRender($param)
{
parent::onPreRender($param);
if ($this->getEnabled(true)) {
$this->getPage()->registerRequiresPostData($this);
}
}