Wednesday, 31 July 2013

Sample Application (Overview)

In this section we will start creating a sample application in order to understand the JSF flow better.

In this sample application we will create a Login page where the user will enter his/her credentials.

If the user credentials are correct then he/she will be directed to the MoneyConvertor page , where amount entered in Rupees will be converted in Dollars.

If the user crediantials are wrong then control will be directed to the Fail page where error message will be displayed to the user.

A back button will also be provided to go back to the Login page.

The files that will be required and the directory structure is shown in the following image (taken straight from eclipse)



The flow can be summarized as shown in the image below (taken from faces-config.xml)

No comments:

Post a Comment