23.12.2012 Views

ZK Developer's Guide

ZK Developer's Guide

ZK Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuration Files in <strong>ZK</strong><br />

3. <br />

This defines the charset that is used for rendering the ZUML pages.<br />

4. <br />

This defines the class that is used to determine the locale. The class must implement<br />

the org.zkoss.zk.ui.sys.LocaleProvider interface.<br />

5. <br />

This defines the class that is used to determine the time zone. The class must<br />

implement the org.zkoss.zk.ui.sys.TimeZoneProvider interface.<br />

6. <br />

This defines the class that is used for the desktop cache. The class must<br />

implement the org.zkoss.zk.ui.sys.DesktopCacheProvider interface.<br />

Right now (zk 2.3.0) there are two implementations available:<br />

°<br />

°<br />

org.zkoss.zk.ui.impl.SessionDesktopCacheProvider<br />

All desktops from a session are stored in a single cache so<br />

clustering is not possible.<br />

org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider<br />

All desktops from a zk application are stored in a<br />

single cache.<br />

7. <br />

This defines the class that creates desktops and pages. It also maps URLs to<br />

pages. The class must implement the org.zkoss.zk.ui.sys.UiFactory<br />

interface. Right now (zk 2.3.0) there are two implementations available:<br />

°<br />

°<br />

org.zkoss.zk.ui.http.SimpleUiFactory<br />

The generated sessions are not serializeable.<br />

org.zkoss.zk.ui.http.SerializableUiFactory<br />

Here the sessions are serializable.<br />

The sessions can be restored after a restart of the web container.<br />

8. <br />

This defines the class that implements the UI engine. This class must implement<br />

the org.zkoss.zk.ui.sys.UiEngine interface.<br />

9. <br />

This implements the web application. It can be extended by org.zkoss.<br />

zk.ui.impl.AbstractWebApp or org.zkoss.zk.ui.http.SimpleWebApp.<br />

[ 166 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!