The au-writer-class Element"
From Documentation
m (Created page with '{{ZKConfigurationReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- | | | |} {{ZKConfig…') |
m |
||
Line 1: | Line 1: | ||
{{ZKConfigurationReferencePageHeader}} | {{ZKConfigurationReferencePageHeader}} | ||
+ | |||
+ | '''Syntax:''' | ||
+ | <au-writer-class>''a_class_name''</au-writer-class> | ||
+ | |||
+ | [Default: <javadoc>org.zkoss.zk.au.http.HttpAuWriter</javadoc> for ZK CE and PE, or <javadoc>org.zkoss.zkmax.au.http.SmartAuWriter</javadoc> for ZK EE] | ||
+ | |||
+ | It specifies which class used to implement the AU writer. The AU writer is used to generate the output and send it to the client. The class must have a default constructor (without any argument), and implement the <javadoc type="interface">org.zkoss.zk.au.AuWriter</javadoc> interface. | ||
+ | |||
+ | There are two built-in implementations, <tt>HttpAuWriter</tt> and <tt>SmartAuWriter</tt>. The former one send the output the client after the requests are processed completely. On the other hand, the later one will send a partial output first if the processing is taking too long (half of the value specified in the <tt>resend-delay</tt> element). By sending the partial output, the client will know the server is still alive. | ||
=Version History= | =Version History= |
Revision as of 15:15, 4 December 2010
Syntax:
<au-writer-class>a_class_name</au-writer-class>
[Default: HttpAuWriter for ZK CE and PE, or SmartAuWriter for ZK EE]
It specifies which class used to implement the AU writer. The AU writer is used to generate the output and send it to the client. The class must have a default constructor (without any argument), and implement the AuWriter interface.
There are two built-in implementations, HttpAuWriter and SmartAuWriter. The former one send the output the client after the requests are processed completely. On the other hand, the later one will send a partial output first if the processing is taking too long (half of the value specified in the resend-delay element). By sending the partial output, the client will know the server is still alive.
Version History
Version | Date | Content |
---|---|---|