The Library Properties"

From Documentation
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{ZKConfigurationReferencePageHeader}}
 
{{ZKConfigurationReferencePageHeader}}
  
{{ZKConfigurationReferenceHeadingToc}}
+
__TOC__
  
==Version History==
+
Here is a list of supported library properties that ZK supports. There are several different scopes you can configure for a library property. All properties support '''system/application''' scope, but some properties support '''page/component''' scope. Please check each property's page to know its supported scope.
  
{| border='1px' | width="100%"
+
= System Scope =
! Version !! Date !! Content
+
If you define a library property as a system property within the configuration file of your web server, though the system property affects the whole system, not just one web application.
|-
+
 
| 5.0.4
+
= Application Scope =
| August 2010
+
To make a library property effective for the whole application, configure it in <code>WEB-INF/zk.xml</code>. For more information, please refer to [[ZK Configuration Reference/zk.xml/The library-property Element | zk.xml]].
| '''org.zkoss.zk.ui.macro.autoforward.disabled'''
+
 
Turn on/off auto forward mechanism for macro component
+
For example,
|-
+
 
| 5.0.4
+
'''Single value'''
| August 2010
+
<source lang="xml">
| '''org.zkoss.zk.ui.macro.autowire.disabled'''
+
<library-property>
Turn on/off auto wire mechanism for macro component 
+
<name>org.zkoss.zul.Button.mold</name>
|-
+
<value>trendy</value>
| 5.0.4
+
</library-property>
| August 2010
+
</source>
| '''org.zkoss.zk.ui.metainfo.page.Loader.class'''
+
 
It specifies the name of the class used to load the page definitions.   
+
'''Multiple values'''
|-
+
<source lang="xml">
| 5.0.5
+
<library-property>
| September 2010
+
<name>org.zkoss.bind.proxy.IgnoredProxyClasses</name>
| org.zkoss.zul.listbox.checkmarkDeselectOthers and org.zkoss.zul.tree.checkmarkDeselectOthers are introduced to control how to select items when an item is clicked on a tree or a listbox with checkmark.
+
<appendable>true</appendable>
|-
+
<list>
| 5.0.5
+
<value>java.util.Date</value>
| October 2010
+
<value>java.sql.Date</value>
| org.zkoss.zul.listbox.rightSelect and org.zkoss.zul.tree.rightSelect are introduced to control whether to toggle item selection or not when an item is right clicked on a tree or a listbox with checkmark.
+
<value>java.sql.Timestamp</value>
|}
+
<value>java.math.BigDecimal</value>
 +
<value>java.math.BigInteger</value>
 +
</list>
 +
</library-property>
 +
</source>
 +
 
 +
 
 +
= Page scope =
 +
Notice that '''not all properties support this scope''', please check each property's page.
 +
Put <code><custom-attributes></code> in a zul out of any component:
 +
<source lang='xml'>
 +
<custom-attributes org.zkoss.zul.listbox.rod="false"/>
 +
 
 +
<listbox id="box1">
 +
</listbox>
 +
 
 +
<listbox id="box2">
 +
</listbox>
 +
</source>
 +
 
 +
 
 +
= Component Scope =
 +
Notice that '''not all properties support this scope''', please check each property's page.
 +
Put <code><custom-attributes></code> under a specific component:
 +
<source lang='xml'>
 +
 
 +
<listbox>
 +
    <custom-attributes org.zkoss.zul.listbox.rod="false"/>
 +
    ...
 +
</listbox>
 +
</source>
 +
 
 +
 
 +
 
 +
{{ZKConfigurationReferenceHeadingToc}}
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 09:30, 25 October 2022


The Library Properties


Here is a list of supported library properties that ZK supports. There are several different scopes you can configure for a library property. All properties support system/application scope, but some properties support page/component scope. Please check each property's page to know its supported scope.

System Scope

If you define a library property as a system property within the configuration file of your web server, though the system property affects the whole system, not just one web application.

Application Scope

To make a library property effective for the whole application, configure it in WEB-INF/zk.xml. For more information, please refer to zk.xml.

For example,

Single value

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

Multiple values

<library-property>
	<name>org.zkoss.bind.proxy.IgnoredProxyClasses</name>
	<appendable>true</appendable>
	<list>
		<value>java.util.Date</value>
		<value>java.sql.Date</value>
		<value>java.sql.Timestamp</value>
		<value>java.math.BigDecimal</value>
		<value>java.math.BigInteger</value>
	</list>
</library-property>


Page scope

Notice that not all properties support this scope, please check each property's page. Put <custom-attributes> in a zul out of any component:

<custom-attributes org.zkoss.zul.listbox.rod="false"/>

<listbox id="box1">
</listbox>

<listbox id="box2">
</listbox>


Component Scope

Notice that not all properties support this scope, please check each property's page. Put <custom-attributes> under a specific component:

<listbox>
    <custom-attributes org.zkoss.zul.listbox.rod="false"/>
    ...
</listbox>



Subsections:




Last Update : 2022/10/25

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