summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateManager.php
diff options
context:
space:
mode:
authorxue <>2007-04-02 21:46:04 +0000
committerxue <>2007-04-02 21:46:04 +0000
commit571b069953f559edd02f89476ebe628efa63d613 (patch)
tree3db21262d2f66bde4e9dfb551a91746fe1463a7d /framework/Web/UI/TTemplateManager.php
parentc391fe9f888c8b4cb3465bd1e535398ae3599283 (diff)
Reduced ViewState size significantly by ignoring initial property values set in template
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r--framework/Web/UI/TTemplateManager.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index d71662ca..286aa252 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -342,10 +342,15 @@ class TTemplate extends TApplicationComponent implements ITemplate
$component->setSkinID($properties['skinid']);
unset($properties['skinid']);
}
+
+ $component->trackViewState(false);
+
$component->applyStyleSheetSkin($page);
- // apply attributes
foreach($properties as $name=>$value)
$this->configureControl($component,$name,$value);
+
+ $component->trackViewState(true);
+
if($parent===$tplControl)
$directChildren[]=$component;
else