summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveCustomValidator.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveCustomValidator.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveCustomValidator.php b/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
index 1668b54f..ad0dd51e 100644
--- a/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
+++ b/framework/Web/UI/ActiveControls/TActiveCustomValidator.php
@@ -128,7 +128,7 @@ class TActiveCustomValidator extends TCustomValidator
* Sets the text for the error message. Updates client-side erorr message.
* @param string the error message
*/
- public function setErrorMessage($value)
+ public function setErrorMessage($value)
{
parent::setErrorMessage($value);
if($this->getActiveControl()->canUpdateClientSide())
@@ -139,13 +139,14 @@ class TActiveCustomValidator extends TCustomValidator
}
}
- /**
- * Register the javascript for the active custom validator.
+ /**
+ * Ensure that the ID attribute is rendered and registers the javascript code
+ * for initializing the active control.
*/
- protected function registerClientScriptValidator()
+ protected function addAttributesToRender($writer)
{
- $this->getActiveControl()->registerCallbackClientScript(
- $this->getClientClassName(), $this->getClientScriptOptions());
+ parent::addAttributesToRender($writer);
+ TBaseValidator::registerClientScriptValidator();
}
/**