The server-push-class Element"
From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} [Optional][Default: ''depends on device and what edition you use''] It specifies which class used to implement the server-push feature.…') |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZKConfigurationReferencePageHeader}} | |
+ | |||
+ | '''Syntax:''' | ||
+ | <server-push-class>''a_class_name''</server-push-class> | ||
[Optional][Default: ''depends on device and what edition you use''] | [Optional][Default: ''depends on device and what edition you use''] | ||
Line 12: | Line 15: | ||
</source> | </source> | ||
− | In addition to configuring the application's default implementation, you can choose an implement for a particular class by use of <javadoc method="enableServerPush(org.zkoss.zk.ui.sys.ServerPush)">org.zkoss.zk.ui.sys.DesktopCtrl</javadoc>. For example, | + | In addition to configuring the application's default implementation, you can choose an implement for a particular class by the use of <javadoc method="enableServerPush(org.zkoss.zk.ui.sys.ServerPush)">org.zkoss.zk.ui.sys.DesktopCtrl</javadoc>. For example, |
<source lang="java"> | <source lang="java"> | ||
Line 18: | Line 21: | ||
</source> | </source> | ||
− | + | =Version History= | |
− | + | {{LastUpdated}} | |
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 06:21, 5 August 2011
Syntax:
<server-push-class>a_class_name</server-push-class>
[Optional][Default: depends on device and what edition you use]
It specifies which class used to implement the server-push feature. The class must have a default constructor (without any argument), and implement the ServerPush interface.
<device-config>
<device-type>ajax</device-type>
<server-push-class>my.ServerPush</server-push-class>
</device-config>
In addition to configuring the application's default implementation, you can choose an implement for a particular class by the use of DesktopCtrl.enableServerPush(ServerPush). For example,
((DesktopCtrl)desktop).enableServerPush(new org.zkoss.zk.ui.impl.PollingServerPush());
Version History
Version | Date | Content |
---|---|---|