From 64ed4e4c12d9f1da130aae8855d240192cf25104 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 30 Aug 2006 11:50:09 +0000 Subject: Fixed #349. --- HISTORY | 1 + framework/Web/UI/TControl.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 13d7a606..bebef70d 100644 --- a/HISTORY +++ b/HISTORY @@ -4,6 +4,7 @@ BUG: Fixed a bug that would prevent from using tag in skins (Qiang) BUG: Fixed a typo in TControl::setCustomData() (Qiang) ENH: Ticket#336 - Speed up TSqliteCache with LIMIT SQL clause (Qiang) ENH: Ticket#348 - Added THead.ShortcutIcon (Qiang) +ENH: Ticket#349 - Derived control classes now show trace logs when databinding (Qiang) ENH: TListControl.SelectedValues and SelectedIndices can now be set before databinding (Qiang) ENH: Upgrade Scriptaculous javascript library to 1.6.2 (Wei) ENH: Uses uncompressed javascript in debug mode. (Wei) diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index ecaf300c..e219f6b4 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -781,11 +781,8 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable */ public function dataBind() { - Prado::trace("Data bind properties",'System.Web.UI.TControl'); $this->dataBindProperties(); - Prado::trace("onDataBinding()",'System.Web.UI.TControl'); $this->onDataBinding(null); - Prado::trace("dataBindChildren()",'System.Web.UI.TControl'); $this->dataBindChildren(); } @@ -794,6 +791,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable */ protected function dataBindProperties() { + Prado::trace("Data bind properties",'System.Web.UI.TControl'); if(isset($this->_rf[self::RF_DATA_BINDINGS])) { if(($context=$this->getTemplateControl())===null) @@ -822,6 +820,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable */ protected function dataBindChildren() { + Prado::trace("dataBindChildren()",'System.Web.UI.TControl'); if(isset($this->_rf[self::RF_CONTROLS])) { foreach($this->_rf[self::RF_CONTROLS] as $control) @@ -1291,6 +1290,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable */ public function onDataBinding($param) { + Prado::trace("onDataBinding()",'System.Web.UI.TControl'); $this->raiseEvent('OnDataBinding',$this,$param); } -- cgit v1.2.3