ZK Developer's Guide
ZK Developer's Guide
ZK Developer's Guide
- TAGS
- guide
- iknow.seforge.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Getting Started with <strong>ZK</strong><br />
Step 2: The component is created. In the case of specification of the use attribute<br />
() the specified class is used to create the component.<br />
Otherwise the component is created based on the name. After that the members<br />
are initialized.<br />
Step 3: The nested elements are interpreted.<br />
After the Composing Phase<br />
Step 4: If the component implements the org.zkoss.zk.ui.ext.AfterCompose<br />
interface, afterCompose() is called.<br />
Step 5: After the creation of all children the event onCreate is send to the created<br />
component.<br />
If we use the forEach attribute the steps are done for each element in<br />
the collection.<br />
<br />
<br />
<br />
<br />
<br />
Phase: Event Processing<br />
For each event that is queued, the event listeners are called in a thread. The<br />
processing of other events is not affected by the processing of code of a single<br />
event listener.<br />
Phase: Rendering<br />
The last stage is to compose from all components one single HTML page. For the<br />
rendering of a component redraw() is called.<br />
The lifecycle of updating a <strong>ZK</strong> page consists of three phases. These phases are<br />
illustrated in the diagram below:<br />
[ 22 ]