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 />
The question is now what to do if any other technique like JSP or JSF should be<br />
integrated as well. <strong>ZK</strong> has a filter servlet, which post-process the output from other<br />
servlets processors.<br />
The servlet class is org.zkoss.zk.ui.http.DHtmlLayoutFilter and has two<br />
optional parameters:<br />
•<br />
•<br />
Extension<br />
This describes how to process the output. The default is html.<br />
Charset<br />
This specifies the charset of the output. The default is UTF-8.<br />
A sample part of web.xml looks as follows:<br />
<br />
<br />
Used to cleanup when a session is destroyed<br />
<br />
<strong>ZK</strong> Session Cleaner<br />
<br />
org.zkoss.zk.ui.http.HttpSessionListener<br />
<br />
<br />
<br />
<strong>ZK</strong> loader for ZUML pages<br />
zkLoader<br />
<br />
org.zkoss.zk.ui.http.DHtmlLayoutServlet<br />
<br />
<br />
update-uri<br />
/zkau<br />
<br />
1<br />
<br />
<br />
zkLoader<br />
*.zul<br />
<br />
<br />
zkLoader<br />
*.zhtml<br />
<br />
<br />
The asynchronous update engine for <strong>ZK</strong><br />
[ 38 ]