The web-app-class Element"
From Documentation
m |
|||
Line 7: | Line 7: | ||
It specifies which class used to implement the Web application. The class must have a default constructor (without any argument), and implement both the <javadoc type="interface">org.zkoss.zk.ui.WebApp</javadoc> and <javadoc type="interface">org.zkoss.zk.ui.sys.WebAppCtrl</javadoc> interfaces. Instead of implementing from scratch, you can extend it from the <javadoc>org.zkoss.zk.ui.impl.AbstractWebApp</javadoc> or <javadoc>org.zkoss.zk.ui.http.SimpleWebApp</javadoc> classes. | It specifies which class used to implement the Web application. The class must have a default constructor (without any argument), and implement both the <javadoc type="interface">org.zkoss.zk.ui.WebApp</javadoc> and <javadoc type="interface">org.zkoss.zk.ui.sys.WebAppCtrl</javadoc> interfaces. Instead of implementing from scratch, you can extend it from the <javadoc>org.zkoss.zk.ui.impl.AbstractWebApp</javadoc> or <javadoc>org.zkoss.zk.ui.http.SimpleWebApp</javadoc> classes. | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <system-config> | ||
+ | <web-app-class>foo.MyKillerApp</web-app-class> | ||
+ | </system-config> | ||
+ | </source> | ||
=Version History= | =Version History= |
Revision as of 06:44, 4 July 2011
Syntax:
<web-app-class>a_class_name</web-app-class>
[Default: SimpleWebApp]
It specifies which class used to implement the Web application. The class must have a default constructor (without any argument), and implement both the WebApp and WebAppCtrl interfaces. Instead of implementing from scratch, you can extend it from the AbstractWebApp or SimpleWebApp classes.
<system-config>
<web-app-class>foo.MyKillerApp</web-app-class>
</system-config>
Version History
Version | Date | Content |
---|---|---|