Este README também está disponível em Português
A full-stack Java web application built with JSF (Jakarta Faces), JPA (Jakarta Persistence), and PostgreSQL. The project uses WildFly 30 as the deployment server and follows Jakarta EE standards. It demonstrates how to implement a functional product management system with JSF forms, PrimeFaces components, AJAX interactions, and a layered MVC structure using CDI.
Below is a preview of the application UI showing the product form interface:
- Java 11
- Maven
- JSF (Jakarta Faces)
- JPA (Hibernate)
- PostgreSQL
- Jakarta EE
- CDI (Contexts and Dependency Injection)
- PrimeFaces with Dark Vela Theme
- WildFly 30
- AJAX (via PrimeFaces)
- model: Contains the JPA entity class (Product).
- controller: Managed beans for JSF, handles UI logic.
- service: Business logic and validations.
- repository: Handles persistence operations via JPA.
- resources/META-INF: Configuration files like
persistence.xml. - webapp: JSF views (XHTML), including the product form.
- Ensure PostgreSQL is running and a database is created.
- Configure your
persistence.xmlto match your database settings and WildFly JNDI name. - Deploy the project on WildFly 30.
- Access the app at:
localhost:8080/online-selling-1.0.0/productForm.xhtml
- JSF pages use
<h:form>andp:inputText,p:commandButton, and other PrimeFaces components. - CDI is enabled via
beans.xmlfor injection support. - The form supports AJAX interaction for smooth validation and update experience.
-
tomcat-deploy-version: Alternate version of this project adapted for manual deployment on Apache Tomcat.- Created to complete a deployment task during the course.
- Uses a different deployment strategy, without WildFly-specific configurations.
- This branch is not intended to be merged into
main.
