org.zkoss.zk.ui.composer.autowire.zscript"

From Documentation
m
m
Line 13: Line 13:
 
<source lang="xml">
 
<source lang="xml">
 
<!-- in WEB-INF/zk.xml -->
 
<!-- in WEB-INF/zk.xml -->
<library-property>
+
<library-property>
<name>org.zkoss.zk.ui.composer.autowire.zscript</name>
+
<name>org.zkoss.zk.ui.composer.autowire.zscript</name>
<value>false</value>
+
<value>false</value>
</library-property>
+
</library-property>
 
</source>
 
</source>
  
Notice that, to have the best performance, it is recommended not to use zscript at all (and then the wiring won't be slowed down). For more more details, please refer to [[ZK Developer's Reference/Performance Tips/Use Compiled Java Codes|ZK Developer's Reference: Performance Tips]].
+
Notice that, to have the best performance, it is recommended not to use zscript at all. For more more details, please refer to [[ZK Developer's Reference/Performance Tips/Use Compiled Java Codes|ZK Developer's Reference: Performance Tips]].
  
 
=Version History=
 
=Version History=

Revision as of 04:16, 8 February 2011


org.zkoss.zk.ui.composer.autowire.zscript


Property:

org.zkoss.zk.ui.composer.autowire.zscript
Default: true (it is default to false in 6.0)
[since 5.0.6]

It specifies whether GenericAutowireComposer (and GenericForwardComposer) shall wire the variables defined in zscript.

Some people reported the wiring of zscript variables causes some performance degrade if there are a lot of zscript code used in a page. You could specify this library variable as follows to turn it off.

<!-- in WEB-INF/zk.xml -->
<library-property>
	<name>org.zkoss.zk.ui.composer.autowire.zscript</name>
	<value>false</value>
</library-property>

Notice that, to have the best performance, it is recommended not to use zscript at all. For more more details, please refer to ZK Developer's Reference: Performance Tips.

Version History

Last Update : 2011/02/08


Version Date Content
5.0.6 Feburary, 2011 Introduced



Last Update : 2011/02/08

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.