summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php
index 96aefe63..59b4fc16 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -243,10 +243,19 @@ abstract class TBaseValidator extends TLabel implements IValidator
}
if($this->getEnableClientScript() & $this->getEnabled(true))
$this->registerClientScriptValidator();
- $this->updateControlCssClass();
}
/**
+ * Override parent implementation to update the control CSS Class before
+ * the validated control is rendered
+ */
+ public function onPreRender ($param)
+ {
+ parent::onPreRender($param);
+ $this->updateControlCssClass();
+ }
+
+ /**
* Update the ControlToValidate component's css class depending
* if the ControlCssClass property is set, and whether this is valid.
* @return boolean true if change, false otherwise.