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

From Documentation
m ((via JWB))
 
(4 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
  org.zkoss.zk.ui.composer.autowire.zscript
 
  org.zkoss.zk.ui.composer.autowire.zscript
  
  Default: <tt>true</tt> (it is default to <tt>false</tt> in 6.0)
+
{{GlobalLibraryProperty}}
[since 5.0.6]
+
 
 +
  Default: <code>true</code> (it is default to <code>false</code> in 6.0)
 +
{{versionSince|5.0.6}}
  
 
It specifies whether <javadoc>org.zkoss.zk.ui.util.GenericAutowireComposer</javadoc> (and <javadoc>org.zkoss.zk.ui.util.GenericForwardComposer</javadoc>) should wire the variables defined in zscript.
 
It specifies whether <javadoc>org.zkoss.zk.ui.util.GenericAutowireComposer</javadoc> (and <javadoc>org.zkoss.zk.ui.util.GenericForwardComposer</javadoc>) should 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.
+
Some people reported that the wiring of zscript variables might cause some performance degrade if there are a lot of zscript code used in a page. You could specify this library variable as the follows to turn it off.
  
 
<source lang="xml">
 
<source lang="xml">
Line 21: Line 23:
 
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]].
 
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]].
  
If you don't use zscript at all, this option does not matter since ZK is smart enough to skip the wiring of zscript variables automatically.
+
If you don't use any zscript, this option does not matter since ZK is smart enough to skip the wiring of zscript variables automatically.
  
 
=Version History=
 
=Version History=

Latest revision as of 09:30, 14 March 2022


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


Property:

org.zkoss.zk.ui.composer.autowire.zscript
Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-cross-icon.png not as <custom-attribute>
Default: true (it is default to false in 6.0)

Since 5.0.6

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

Some people reported that the wiring of zscript variables might cause some performance degrade if there are a lot of zscript code used in a page. You could specify this library variable as the 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.

If you don't use any zscript, this option does not matter since ZK is smart enough to skip the wiring of zscript variables automatically.

Version History

Last Update : 2022/03/14


Version Date Content
5.0.6 Feburary, 2011 Introduced



Last Update : 2022/03/14

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