From 71f5a719845a9fd131c6513e6001fabe1bc8359f Mon Sep 17 00:00:00 2001 From: mikl <> Date: Thu, 16 Oct 2008 14:49:12 +0000 Subject: Fixed #865 --- framework/Web/UI/ActiveControls/TActiveLabel.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework/Web') diff --git a/framework/Web/UI/ActiveControls/TActiveLabel.php b/framework/Web/UI/ActiveControls/TActiveLabel.php index e4b4bc6f..40c3e28b 100644 --- a/framework/Web/UI/ActiveControls/TActiveLabel.php +++ b/framework/Web/UI/ActiveControls/TActiveLabel.php @@ -77,6 +77,15 @@ class TActiveLabel extends TLabel implements IActiveControl $this->getPage()->getCallbackClient()->setAttribute($this, 'for', $id); } } + + /** + * Adds attribute id to the renderer. + * @param THtmlWriter the writer used for the rendering purpose + */ + protected function addAttributesToRender($writer) { + $writer->addAttribute('id',$this->getClientID()); + parent::addAttributesToRender($writer); + } } ?> -- cgit v1.2.3