How-To: Develop a FACTORITY web application
From FactorityWiki
Requirements
- Familiar with MVC design pattern
Goals
This tutorial shows:
- how to structure projects with naming conventions
- how to build web GUI to show data
Contents |
Introduction
We want to build a small employee management application, called AppEmpManagement. At the end of this tutorial, the student shall be able to:
- list all employees and
- view employee details.
Therefore, the GUI shows all employees in a list (Figure 1 left). The user can press the “add” button to see values of a new employee or press the “edit” button to see the values of a selected employee. Both actions will open a new dialog window (Figure 1 right) with an input form.
Project Structure
The project is structured according to the MVC architecture style. Here we work with *.java classes for the model and the controllers. The view elements reuse the OpenLaszlo technology and therefore are realized in XML files called *.lzx.
Model
- DataEmployeeList.java
- DataEmployeeItem.java
View
- AppEmpManagement.lzx
- DlgEmpItem.lzx
Controller
- ReportEmpList.java
- FormEmpItem.java

