Java Reference
In-Depth Information
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getSalutation() {
return salutation;
}
public void setSalutation(String salutation) {
this.salutation = salutation;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
}
Notice that the names of all of the bean's properties (instance variables) match the
names we used in the JSP's value binding expressions. These names must match so
that JSF knows how to map the bean's properties to the value binding expressions.
 
Search WWH ::




Custom Search