Menu

JSF CRUD application structure

FX89

This document refers to the JSF CRUD application templates. Using these templates, the CodeGen Builder generates a Spring-enabled modular web application which provides out of the box CRUD and mapping functionality, as well as a variety of re-usable fragments, based on the inputted model.


Modules

The generated Maven project has three modules.

The WEB module
Contains out of the box views and re-usable view fragments, as well as out of the box beans and abstract beans to help speed up the development of custom applications. Follow this link to learn more about the generated web module

The API module
Contains Java interfaces to the service module. Facilitates loose coupling.

The Service module
Contains the back-end of the application, which is responsible for repository operations. Provides a wide range of optimized search methods, including methods involving combinations of similar date fields and searching in multiple text fields. The service module provides two repository implementations: a mock implementation (in memory) and a Spring Data implementation. Follow this link to learn more about the service module


Layouts

There are two packing and deployment strategies to choose from, depending on the needs of the project.

Standalone
Pack everything into a single web archive which, once deployed on the server, will work as a standalone application.

Decoupled
Pack the web application and the service separately. Once deployed, the web application will not work unless the service library is in the library path. From within the library path, the service library may also be used by other applications.


The following image summarizes the two packing and deployment strategies


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.