From 6e275c7db5cbbf1bf0331bbaf60f3b3ec612c3a7 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 13 Jun 2006 02:07:25 +0000 Subject: Fixed #224. --- framework/Web/UI/ActiveControls/TActiveTextBox.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TActiveTextBox.php') diff --git a/framework/Web/UI/ActiveControls/TActiveTextBox.php b/framework/Web/UI/ActiveControls/TActiveTextBox.php index fba36a14..91adf8c7 100644 --- a/framework/Web/UI/ActiveControls/TActiveTextBox.php +++ b/framework/Web/UI/ActiveControls/TActiveTextBox.php @@ -15,12 +15,12 @@ class TActiveTextBox extends TTextBox parent::__construct(); $this->setAdapter(new TActiveControlAdapter($this)); } - + public function getActiveControl() { return $this->getAdapter()->getActiveControl(); } - + /** * Client-side Text property can only be updated after the OnLoad stage. * @param string text content for the textbox @@ -29,8 +29,18 @@ class TActiveTextBox extends TTextBox { parent::setText($value); if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) - $this->getPage()->getCallbackClient()->setValue($this, $value); - } + $this->getPage()->getCallbackClient()->setValue($this, $value); + } + + /** + * Gets the name of the javascript class responsible for performing postback for this control. + * This method overrides the parent implementation. + * @return string the javascript class name + */ + protected function getClientClassName() + { + return 'Prado.WebUI.TActiveTextBox'; + } } ?> \ No newline at end of file -- cgit v1.2.3