diff options
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveTextBox.php')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveTextBox.php | 18 |
1 files changed, 14 insertions, 4 deletions
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 |