CHAPTER 6: Component-Based Web Development Using JSF 2 273
You will create the following files in the project:
Managed bean: HelloBean.java.
form.xhtml: This is a view file that comprises JSF core tags and deferred EL.
When the application is run, the form.xhtml file looks like Figure 6-11. This
screen provides an input field and a Submit button.
Figure 6-11. The form to enter the name
Figure 6-12. Hello screen
hello.xhtml: When users enter a name and click the Submit button in form.xhtml,
they are greeted by name. hello.xhtml displays the name of the user entered in
form.xhtml along with the greeting, as illustrated in Figure 6-12.