ENTERPRISE APPLICATION ASSIGNMENT HELP
To create an order, first there needs to be some items and a customer. Select the customer and the items from the drop down menus shown in the Image below. And then enter the quantity of the item that you want to order. After that press create order, if the quantity of the item is available then the order will be created.
To view all the books in the database, click on ‘book stock‘ on the homepage, and the following page will appear with the table of all the books. Similarly click on ‘CD stock’ to view the stock of CDs, and orders.
Managed beans have been created for all the entities that are present in this system. One managed bean is present for each entity i.e. Book, CD, Customer, Order. The managed beans take the data from the JSF pages and then pass this data to the Business tier. Different methods of the managed beans return the address of the next page to be opened, using which the navigation between the pages has been performed.