From 24f10e736df7705dbbff76d2f3345eaba369f432 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 8 Apr 2008 14:48:48 +0000 Subject: Fixed #595 --- framework/Web/UI/WebControls/TBaseValidator.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI') 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,9 +243,18 @@ 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. -- cgit v1.2.3