From Documentation

Jump to: navigation, search








Here is a list of supported preferences that ZK recognizes.

To define a preference, you can configure it in WEB-INF/zk.xml[1]. The preferences are similar to the library properties: they are application-specific name/value pairs. You could use them to configure your application and ZK engine. However, unlike the library properties, preferences are stored in Configuration and can be retrieved by use of Configuration.getPreference(String, String).

For example,

<preference>
    <name>org.zkoss.zk.ui.WebApp.name</name>
    <value>My Killer Application</value>
</preference>




  1. For more information, please refer to The preference Element.



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



You got stuck here?
Let us know why!
For questions please use the forum