A simple user interface created in JSF and Java that would allow a user to view the basic details of a wine, reading data from json files as part of coding challange for Vintrace
For Excercise1:
- The implementation of 4 wine composition methods is done is WineServiceImpl class. For Excercise2:
- A JSF UI that would allow a user to select a wine to see its details.
- User can view basic details of a wine, and a combo-box to switch between viewing the different composition types.
- Composition types supports printYearBreakdown,printVarietyBreakdown, printRegionBreakdown and printYearAndVarietyBreakdown.
- Each method shows the percentage of the unique property along with the unique properties sorted from highest percentage to lowest.
- JSF backing bean is loading a Wine object from the JSON sample files from the web-resourceses.
- Maven build is provided.
- JDK 1.8.0_201
- JSF 2.2
- JAVA EE 7 compliant server (I have configured Glassfish 5)
- Import the maven repo
- Install the Glassfish server
- Download GlassFish tools from Eclipse marketplace.
- Configure the downloaded server in eclipse.
- From project properties, in targeted runtime-- select the Glassfish server.
- WineManagementSystem--Run on server
- The localhost URL will be:--http://localhost:8080/wineManagementSystem/
I have used maven embedded-glassfish plugin to install the app.
- Download the unzip project WineManagementSystem
- mvn install
- mvn embedded-glassfish:run
- The localhost URL will be:--http://localhost:8080/WineManagementSystem/