Subscribe to our news feed and stay current on our latest updates

Sponsors/Partners :

Become Sponsor/Partner

Welcome to Zerocouplage Framework







Zerocouplage is an open source Java/JEE  framework based on the MVC model (model, view and controller) developed at first by E.N.S.A.O students; it aims to facilitate applications migration from one presentation surface to another.

In principle Zerocouplage Framework enables the separation between business (or treatment) layer and the presentation layer, whether the application is a web based, desktop based, mobile...

This Framework is dedicated to developers and companies involved in Java / JEE applications development. If you are an individual, a group or an organization interested by improving the project or making it up to the next versions, please feel free to contact us so as to join the Zerocouplage community or subscribe to the newsletter to receive the latest news about updates and downloads. On this website you will find all the necessary informations and documents you need for using or enhancing Zerocouplage Framework.

Each version is accompanied with a documentation which explains in details the relations between the different classes and components used by developers, a downloadable open source code and binary resource files. You will also find various tutorials and descriptions that can assist you for a better use of the Zerocouplage Framework.



    Zerocouplage Framework functioning :


In this part we are interested in all the diagrams which illustrate the principle and the functioning of Zerocouplage framework with a detailed description of each diagram in order to facilitate the use and understanding of our framework by the developers of the web application, desktop, mobile...

To consult Zerocouplage conception diagrams please follow this link : Zerocouplage Conception Diagrams


General principle of Zerocouplage Framework


FIG1: Schematic illustration of ZeroCouplage Framework


(1):  The Framework Zerocouplage is based on the configuration file zerocouplage.xml. It allows the Framework to manage different navigation rules and ensure proper configuration to one type of target application independently of the business layer.

(2) :The Framework Zerocouplage allows developers to use a file ZC_Val.xml validation to validate form fields.

(3): Interacting between Zerocouplage framework and business layer independently of the presentation layer.

(4)-(5)-(6)-(7): the Framework Zerocouplage allows developers to create web applications, desktop,mobile or other.. preserving the same business layer but with different views.


Form fields validation using Zerocouplage Framework

Zerocouplage framework has a specific API for validating the form fields. To validate the fields of view it is sufficient to create a validator class or complete configuration file for validation "ZC_val.xml".  The zerocouplage framework  executes processing if the form fields respect the constraint file or the validation class. In case the fields’ values do not match the constraints, the treatment will be redirect to the home view or views errors.

forms fields validation using Zerocouplage Framework


FIG2: Part validation of Zerocouplage Framework


Validation remains a unique asset of the framework because it makes it easy to check the types of the fields of view and detect errors in the format of the fields of view.


Request Lifecycle in Zerocouplage 1.0.0 applications

The Zerocouplage 1.0.0 framework offers the possibility to develop web based and desktop based
applications, using the same business layer for different presentation layers. We can then display the
application via two environments: web and desktop
In this presentation, the view refers to either a web page or desktop.
The image below is an overview of request processing in Zerocouplage applications:

Request Lifecycle in Zerocouplage 1.0.0 applications


FIG3: Request Lifecycle in Zerocouplage 1.0.0 applications


1. User sends a request from InView. The request is handled by ZCManagerImpl, which is responsible for the execution of the processing required to generate the result.The ZCManagerImpl looks at the request and then determines the appropriate Business.

2. ZCManagerImpl encapsulates business data entered by the user in the JavaBean InBean. 

3. Validator is applied to the InBean  There are two possible cases : 

      3.1. The data are not all valid (KO) : ZCManagerImpl retrieves the list of errors and redisplay the InView with corresponding errors (or other error page). 

      3.2. All data are valid (OK) : the process continues.

4. Selected Business method is executed to perform the requested operation, and the data generated are stored in the JavaBean OutBean.

5. ZCManagerImpl transmits JavaBean OutBean to view OutView.

6. The view OutView display the result to the user using the JavaBean OutBean.



    Zerocouplage limitations :


Zerocouplage framework has some limitations that will be fixed in the future updates of the framework :
1. Type conversion : adding the ability to use objects in beans.

2. Creaction three projects: the presentation layer must be developed three times for each support (web, desktop or mobile).

3. Basic components: ZeroCouplage contains only basic components