summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-08-30 11:50:09 +0000
committerxue <>2006-08-30 11:50:09 +0000
commit64ed4e4c12d9f1da130aae8855d240192cf25104 (patch)
treeb411d3d52aa049a439cc4d8f34b4bfccb1fe53f6
parent6a92f398c8396f54e293cc021f0e1a98d4650ca2 (diff)
Fixed #349.
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/TControl.php6
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 <prop:> 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);
}