The web-app-class Element"

From Documentation
m
Line 13: Line 13:
 
</system-config>
 
</system-config>
 
</source>
 
</source>
 +
 +
Alternatively, you could use [[ZK Configuration Reference/zk.xml/The system-config Element/The web-app-factory-class Element|the web-app-factory-class element]] instead. Notice, if both specified, [[ZK Configuration Reference/zk.xml/The system-config Element/The web-app-class Element|the web-app-class element]] has the higher priority.
  
 
=Version History=
 
=Version History=

Revision as of 06:41, 6 September 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>

Alternatively, you could use the web-app-factory-class element instead. Notice, if both specified, the web-app-class element has the higher priority.

Version History

Last Update : 2011/09/06


Version Date Content
     



Last Update : 2011/09/06

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