Java Reference
In-Depth Information
In our page markup, we have JSF components using Unified Expression Language
expressions to bind themselves to managed bean properties and methods. In this
case, however, the managed beans are not JSF managed beans but CDI managed
beans. Let's take a look at the customer bean first.
package com.ensode.model;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
public class Customer implements Serializable {
private String firstName;
private String middleName;
private String lastName;
private String email;
public Customer() {
public String getFirstName() {
return firstName;
public void setFirstName(String firstName) {
this.firstName = firstName;
public String getMiddleName() {
return middleName;
public void setMiddleName(String middleName) {
this.middleName = middleName;
Search WWH ::

Custom Search