10. Advanced Features

Table of Contents

Identify Pages
Identify Components
The Component Path
Sorting
Browser's Information and Controls
The onClientInfo Event
The org.zkoss.ui.util.Clients Class
Prevent User From Closing a Window
Browser's History Management
Add the Appropriate States to Browser's History
Listen to the onBookmarkChanged Event and Manipulate the Desktop Accordingly
A Simple Example
Component Cloning
Component Serialization
Serializable Sessions
Serialization Listeners
Inter-Page Communication
Post and Send Events
Attributes
Inter-Web-Application Communication
Web Resources from Classpath
Annotations
Annotate ZUML Pages
Annotate Components Created Manually
Retrieve Annotations
Richlets
Implement the org.zkoss.zk.ui.Richlet interface
Configure web.xml and zk.xml
Session Timeout Management
Error Handling
Error Handling When Loading Pages
Error Handing When Updating Pages
Miscellaneous
Configure the ZK Loader Not to Compress the Output

This chapter describes the advance topics about components and pages.