The au-decoder-class Element
Syntax:
<au-decoder-class>a_class_name</au-decoder-class>
[Default: null (using the default JSON-based format)]
It specifies which class will be used to implement the AU decoder. The AU decoder is used to decode the AU requests. The class must implement org.zkoss.zk.au.AuDecoder.
By default, the AU request is sent in the JSON format. If you prefer to use another format, you could provide an implementation as follows.
- Implement
org.zkoss.zk.au.AuDecoder. You
can reference the default implementation, inner class AuDecoder in
org.zkoss.zk.au.http.DHtmlUpdateServlet
. - Register it by specifying it with the
au-decoder-class
element inWEB-INF/zk.xml
- Override a JavaScript method called _global_.zAu#encode(int, zk.Event, zk.Desktop) to encode to the custom format