protected function registerClientScriptValidator()
{
$key = 'prado:' . $this->getClientID();
if (!$this->getPage()->getClientScript()->isEndScriptRegistered($key)) {
$options = TJavaScript::encode($this->getClientScriptOptions());
$script = 'new ' . $this->getClientClassName() . '(' . $options . ');';
$this->getPage()->getClientScript()->registerEndScript($key, $script);
}
}