diff options
author | xue <> | 2007-04-02 21:46:04 +0000 |
---|---|---|
committer | xue <> | 2007-04-02 21:46:04 +0000 |
commit | 571b069953f559edd02f89476ebe628efa63d613 (patch) | |
tree | 3db21262d2f66bde4e9dfb551a91746fe1463a7d /framework/Web/UI/TTemplateManager.php | |
parent | c391fe9f888c8b4cb3465bd1e535398ae3599283 (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.php | 7 |
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
|