The Library Properties"

From Documentation
Line 3: Line 3:
 
Here is a list of supported library properties that ZK recognizes.
 
Here is a list of supported library properties that ZK recognizes.
  
 +
= System Scope =
 
To define a library property, you can configure it in <code>WEB-INF/zk.xml</code><ref>For more information, please refer to [[ZK Configuration Reference/zk.xml/The library-property Element | the library-property element]].
 
To define a library property, you can configure it in <code>WEB-INF/zk.xml</code><ref>For more information, please refer to [[ZK Configuration Reference/zk.xml/The library-property Element | the library-property element]].
 
</ref>. For example,
 
</ref>. For example,
Line 28: Line 29:
  
 
Alternatively, you can define it as a system property with the configuration file of your Web server, though the system property affects the whole system, not just one Web application.
 
Alternatively, you can define it as a system property with the configuration file of your Web server, though the system property affects the whole system, not just one Web application.
 +
 +
 +
= Custom Attributes=
 +
You also can configure '''some''' properties with <tt><custom-attributes></tt> in a zul. Notice that '''not all properties support this''', please check each property's page.
 +
 +
== Page scope ==
 +
Put it 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 ==
 +
Put it under a specific component:
 +
<source lang='xml'>
 +
 +
<listbox>
 +
<custom-attributes org.zkoss.zul.listbox.rod="false"/>
 +
</listbox>
 +
</source>
 +
 +
  
 
{{ZKConfigurationReferenceHeadingToc}}
 
{{ZKConfigurationReferenceHeadingToc}}

Revision as of 04:51, 13 July 2018


The Library Properties


Here is a list of supported library properties that ZK recognizes.

System Scope

To define a library property, you can configure it in WEB-INF/zk.xml[1]. For example,

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

or

<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>

Alternatively, you can define it as a system property with the configuration file of your Web server, though the system property affects the whole system, not just one Web application.


Custom Attributes

You also can configure some properties with <custom-attributes> in a zul. Notice that not all properties support this, please check each property's page.

Page scope

Put it out of any component

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

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

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

Component Scope

Put it under a specific component:

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



Subsections:



  1. For more information, please refer to the library-property element.


Last Update : 2018/07/13

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