Miscellaneous"

From Documentation
m (remove empty version history (via JWB))
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
  
= Button: use the <tt>os</tt> mold if there are a lot of buttons =
+
= Button: use the <code>os</code> mold if there are a lot of buttons =
  
The <tt>trendy</tt> 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 <tt>trendy</tt>) in the same page.
+
The <code>trendy</code> mold of a button provides a better and more consistent look, especially for Internet Explorer 6. Unfortunately, the browser (particularly, Internet Explorer) will be slowed down if there are a lot of buttons (with <code>trendy</code>) in the same page.
  
  Notice that the default mold is <tt>os</tt> in ZK 5, while <tt>trendy</tt> in ZK 3.6.
+
  Notice that the default mold is <code>os</code> in ZK 5, while <code>trendy</code> in ZK 3.6.
 +
{{versionSince | 7.0.0}} There is no difference between <code>os</code> and <code>trendy</code>.
  
 
The default mold can be changed easily. For example,
 
The default mold can be changed easily. For example,
  
<syntax lang="xml">
+
<source lang="xml">
 
<library-property>
 
<library-property>
 
<name>org.zkoss.zul.Button.mold</name>
 
<name>org.zkoss.zul.Button.mold</name>
 
<value>trendy</value>
 
<value>trendy</value>
 
</library-property>
 
</library-property>
</syntax>
+
</source>
  
Refer to [[ZK_Configuration_Reference/zk.xml/The_library-property_Element/Library_Properties#class.mold|ZK Configuration Reference]] for more information.
+
Refer to [[ZK Configuration Reference/zk.xml/The Library Properties/class.mold|ZK Configuration Reference]] for more information.
  
 
=Prolong the Period to Check Whether a File Is Modified=
 
=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.
+
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 <code>file-check-period</code> in <code>WEB-INF/zk.xml</code> as shown below. By default, it is 5 seconds.
  
<syntax lang="java" >
+
<source lang="xml" >
 
<desktop-config>
 
<desktop-config>
 
     <file-check-period>600</file-check-period><!-- unit: seconds -->
 
     <file-check-period>600</file-check-period><!-- unit: seconds -->
 
</desktop-config>
 
</desktop-config>
</syntax>
+
</source>
  
=Version History=
 
  
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
|-
 
| &nbsp;
 
| &nbsp;
 
| &nbsp;
 
|}
 
  
 
{{ ZKDevelopersReferencePageFooter}}
 
{{ ZKDevelopersReferencePageFooter}}

Latest revision as of 10:23, 5 February 2024

Button: use the os mold if there are a lot of buttons

The trendy mold of a button provides a better and more consistent look, especially for Internet Explorer 6. Unfortunately, the browser (particularly, Internet Explorer) will be slowed down if there are a lot of buttons (with trendy) in the same page.

Notice that the default mold is os in ZK 5, while trendy in ZK 3.6.
Since  7.0.0 There is no difference between os and trendy.

The default mold can be changed easily. For example,

<library-property>
	<name>org.zkoss.zul.Button.mold</name>
	<value>trendy</value>
</library-property>

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.

<desktop-config>
    <file-check-period>600</file-check-period><!-- unit: seconds -->
</desktop-config>




Last Update : 2024/02/05

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