Init is a JSF component implementation for initial of page
Once this is specified, an instance inside this tag is created and
Initiator.doInit is called
before the page is evaluated. Then,
Initiator.doAfterCompose is called
after all components are created, and before any event is processed.
In additions,
Initiator.doFinally is called
after the page has been evaluated. If an exception occurs,
Initiator.doCatch is called.
A typical usage: starting a transaction in doInit, rolling back it
in
Initiator.doCatch and commit it in
Initiator.doFinally (if
Initiator.doCatch is not called).
Usage:
<z:init useClass="my.Init" arg0="hello"/>
This component should be declared nested under
org.zkoss.jsf.zul.Page .
To know more ZK component features you can refer to http://www.zkoss.org/
author: Dennis.Chen |