From e126c0067e9efee6542d08bf649588e2cf3a5924 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 12 Jan 2006 03:22:03 +0000 Subject: Fixed several issues about viewstate handling. Prado Composer is nearly completed. --- framework/Web/UI/WebControls/TDataBoundControl.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TDataBoundControl.php') diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php index 7d865e0f..ea2a0602 100644 --- a/framework/Web/UI/WebControls/TDataBoundControl.php +++ b/framework/Web/UI/WebControls/TDataBoundControl.php @@ -40,6 +40,7 @@ abstract class TDataBoundControl extends TWebControl private $_currentDataSourceValid=false; private $_currentViewIsFromDataSourceID=false; private $_parameters=null; + private $_isDataBound=false; /** * @return Traversable data source object, defaults to null. @@ -131,7 +132,7 @@ abstract class TDataBoundControl extends TWebControl */ protected function getIsDataBound() { - return $this->getViewState('IsDataBound',false); + return $this->_isDataBound; } /** @@ -139,7 +140,7 @@ abstract class TDataBoundControl extends TWebControl */ protected function setIsDataBound($value) { - $this->setViewState('IsDataBound',TPropertyValue::ensureBoolean($value),false); + $this->_isDataBound=$value; } /** -- cgit v1.2.3