The org.zkoss.zk.ui.util.Initiator interface

From Documentation
Revision as of 04:31, 31 March 2011 by Tomyeh (talk | contribs)


DocumentationZK Configuration Referencezk.xmlThe listener ElementThe org.zkoss.zk.ui.util.Initiator interface
The org.zkoss.zk.ui.util.Initiator interface


Property:

org.zkoss.zk.ui.util.Initiator interface
[since 5.0.7]

Initiator is implemented by a listener class that can used to handle the initialization of a page as if it is specified in the init directive. It is called system-level initiators.

Each time a ZK page is created, ZK will instantiate one instance for each registered system-level initiator and the invoke Initiator.doInit(Page, Map) and other methods.

If you want to process only certain pages, you can check the request path by calling Desktop.getRequestPath() (the desktop instance can be found thru the give component).

Since an individual instance will be instantiated for each page, the implementation needs not to be thread safe.



Last Update : 2011/03/31

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