Java Reference
In-Depth Information
As we can see, the preceding markup doesn't look any different from the markup
used for a JSF application that does not use CDI. The page renders as follows
(shown after entering some data):
In our page markup, we have JSF components that use Unified Expression Language
expressions to bind themselves to CDI named bean properties and methods. Let's
take a look at the customer bean first:
package com.ensode.cdiintro.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;
Search WWH ::

Custom Search