The NWS Tutorial

How to create a NWS page without data link and without events managers?



WARNING: This tutorial is being written! Do not hesitate to report any errors or suggestions.

In a classic way, a Web page is linked to a class of a Web page. This class will normally have the code of the events managers of the Web components contained in the page. It also have the needed code from the data link. However, in some cases, relatively simple, you want to define a very simple web page (without data link and without events managers) but nevertheless by taking advantage of the power of the NWS Web components (menu bars, components of the forms validation, ...).

If you are in this case, be aware that the framework allows you to define a WEB page without requiring the implementation of a page class. To do this, create a Web page file and edit it as the example below. The only difference with what we have done previously, is the value of the XML attribute codeBehind: instead of referencing one of your Web pages classes, it contains the following value: corelib.services.web.server.WebPage (note that this is the basis class of any class of the NWS Web pages).

 
01 <?xml version="1.0" encoding="ISO-8859-1" ?>
02 <web:Html xmlns:web="corelib.services.web.components"
03           codeBehind="corelib.services.web.server.WebPage">
04 	<head>
05 		<title>The title</title>
06 	</head>
07   <body>
08   
09     <!-- TODO -->
10   
11   </body>
12 
13 </web:Html>

CAUTION : NWS is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of framework NWS. In addition, Infini Software can in no way be liable for the use of information contained in these tutorials.

Dominique LIARD - © 2007 SARL Infini Software - All rights reserved
Other brands and product names in these documents are the property of their respective owners.