Skip to content

jrbalsas/dawClubJSF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dawClub using Jakarta Faces Build Status

Sample Maven project with Jakarta Faces CRUD Web App

Features:

  • Simple DAOMap for testing purpose
  • Sample DAOJPA implementation
  • Uses CDI annotations with qualifiers for DAO selection in Controller
  • Bean Validation with customized messages on ValidationMessages.properties
  • Custom BeanValidation Implementation: @Dni
  • Simple Entity CRUD views
  • DataTable row editing view
  • Sample view modification using AJAX
  • H2 database connection
  • Standard JNDI connection pool definition in web.xml
  • Persistence.xml configuration with JNDI datasource
  • Optional access control rules
  • JEE Security API options :
    • IdentityStores: Embedded, Database, Custom
    • HttpAuthenticationMethods: Basic, Form, CustomJSF Form/controller

Requirements

Usage

  • Compile and deploy in a JEE Application Server

DB Access:

  1. Configure JEE Datasource in web.xml
  2. Select Map or JPA DAOs implementation in controller, AppConfig and ClubIdentityStore classes
  3. Create sample data on AppConfig class
  4. (optional) resources/META-INF/sql/schema.sql can be used to create tables not managed by JPA
  5. (optional) resources/META-INF/sql/sampledata.sql used to insert sample data into JPA managed tables

Access control:

  1. Uncomment access-restriction section in access control rules (web.xml)
  2. Uncomment required HttpAuthenticationMechanism in AppConfig class. Standard Form by default
  3. Uncomment preferred IdentityStore/s in AppConfig class if required.
  4. Custom ClubIdentityStore available by default. Select Map or JPA DAOs implementation to access user credentials.