The Library Properties"
m (correct highlight (via JWB)) |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
__TOC__ | __TOC__ | ||
− | 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 | + | 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 = | = System Scope = | ||
Line 9: | Line 9: | ||
= Application Scope = | = Application Scope = | ||
− | To make a library property effective for the whole application, configure it in <code>WEB-INF/zk.xml</code> | + | 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]]. |
− | + | ||
+ | For example, | ||
'''Single value''' | '''Single value''' | ||
Line 65: | Line 66: | ||
{{ZKConfigurationReferenceHeadingToc}} | {{ZKConfigurationReferenceHeadingToc}} | ||
− | |||
− | |||
− | |||
− | |||
{{ZKConfigurationReferencePageFooter}} | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 09:30, 25 October 2022
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>