Miscellaneous"
m |
m |
||
Line 16: | Line 16: | ||
</syntax> | </syntax> | ||
− | Refer to [[ | + | Refer to [[ZK_Configuration_Reference/zk.xml/The_library-property_Element/Library_Properties#class.mold|ZK Configuration Reference]] for more information. |
+ | |||
+ | =Prolong the Period to Check Whether a File Is Modified= | ||
+ | ZK caches the parsed result of a ZUML page and re-compiles it only if it is modified. In a production system, ZUML pages are rarely modified so you can prolong the period to check whether a page is modified by specifying <tt>file-check-period</tt> in <tt>WEB-INF/zk.xml</tt> as shown below. By default, it is 5 seconds. | ||
+ | |||
+ | <syntax lang="java" > | ||
+ | <desktop-config> | ||
+ | <file-check-period>600</file-check-period><!-- unit: seconds --> | ||
+ | </desktop-config> | ||
+ | </syntax> | ||
=Version History= | =Version History= |
Revision as of 11:14, 18 September 2010
Button: use the os mold if there are a lot of buttons
The trendy mold of a button provides a better and consistent look for, especially, Internet Explorer 6. Unfortunately, the browser (particularly, Internet Explorer) will be slowed down if there are a lot of button (with trendy) in the same page.
Notice that the default mold is os in ZK 5, while trendy in ZK 3.6.
With ZK 5, you can change the default mold easily. For example,
<syntax lang="xml"> <library-property> <name>org.zkoss.zul.Button.mold</name> <value>trendy</value> </library-property> </syntax>
Refer to ZK Configuration Reference for more information.
Prolong the Period to Check Whether a File Is Modified
ZK caches the parsed result of a ZUML page and re-compiles it only if it is modified. In a production system, ZUML pages are rarely modified so you can prolong the period to check whether a page is modified by specifying file-check-period in WEB-INF/zk.xml as shown below. By default, it is 5 seconds.
<syntax lang="java" > <desktop-config>
<file-check-period>600</file-check-period>
</desktop-config> </syntax>
Version History
Version | Date | Content |
---|---|---|