This application will make you understand how Model(M), View(V), Controller(C) architecture is implemented in Java Server Faces. This application will make use of UI components, Validator, Navigation and Bean component available with JSF. This application has the following pre-requisites:
- WTP 2.0.1 - Download for wtp-all-in-one-sdk-win32
- Apache Geronimo 2.1- Download for AG 2.1
- Geronimo Eclipse Plugin (GEP) 2.1 - Download for AG Eclipse plugin
Briefly describing the application, this application will take a user First Name and Last Name. Later these fields will be validated by JSF and using the controller bean and Navigation rule the output will be displayed. This application will also introduce a UI component which is a submit button.
The application development will take you through the following
- Define and implement the Java Bean
- Define and implement Model(M) in application
- Define and implement View(V) in application
- Define and implement the Validator component
- Define and implement the View navigation by Controller(C)
Once you have all the pre-requisites installed follow the following steps to create a project with Eclipse
Launch Eclipse and Create a dynamic web project as shown in the figure!CreateDynamicWebProject!