The web-app-class Element"

From Documentation
m
Line 6: Line 6:
 
  [Default: <javadoc>org.zkoss.zk.ui.http.SimpleWebApp</javadoc>]
 
  [Default: <javadoc>org.zkoss.zk.ui.http.SimpleWebApp</javadoc>]
  
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 is 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">
 
<source lang="xml">

Revision as of 10:23, 8 August 2011


The web-app-class Element


Syntax:

<web-app-class>a_class_name</web-app-class>
[Default: SimpleWebApp]

It specifies which class is 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

Last Update : 2011/08/08


Version Date Content
     



Last Update : 2011/08/08

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.