Java Reference
In-Depth Information
private String salutation;
private String firstName;
private String lastName;
private Integer age;
private String email;
//getters and setters omitted for brevity
}
We can see that the names of all of the bean's properties (instance variables) match
the names we used in the page's value binding expressions. These names must match
so that JSF knows how to map the bean's properties to the value binding expressions.
Implementing the confirmation page
Once our user fills out the data on the input page and submits the form, we want to
show a confirmation page displaying the values that the user entered. Since we used
value binding expressions on every input field on the input page, the corresponding
fields on the named bean will be populated with data entered by the user. Therefore,
all we need to do in our confirmation page is display the data on the named bean via
a series of <h:outputText> JSF tags.
We can create the confirmation page via the New JSF File wizard by going to
File | New File , selecting the JavaServer Faces category, and selecting JSF Page
as the file type.
 
Search WWH ::




Custom Search