Skip to content

AsrielDreemurrGM/OnlineSelling_JSF_JPA_Postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OnlineSelling_JSF_JPA_Postgres

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.

🖼️ Demo Screenshot

Below is a preview of the application UI showing the product form interface:

Online Selling Fullstack Demo Screenshot

🚀 Technologies Used

  • 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)

📁 Project Structure

  • 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.

🛠️ How to Run

  1. Ensure PostgreSQL is running and a database is created.
  2. Configure your persistence.xml to match your database settings and WildFly JNDI name.
  3. Deploy the project on WildFly 30.
  4. Access the app at: localhost:8080/online-selling-1.0.0/productForm.xhtml

📌 Notes

  • JSF pages use <h:form> and p:inputText, p:commandButton, and other PrimeFaces components.
  • CDI is enabled via beans.xml for injection support.
  • The form supports AJAX interaction for smooth validation and update experience.

🗂️ Additional Branches

  • 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.

About

Full-stack Java web application for online product management, built with JSF, JPA, PostgreSQL, and deployed on WildFly 30 using Jakarta EE.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors