Java Reference
In-Depth Information
Listing 12.2.
Employee
class marked for use with unified EL
This listing contains the
Employee
class from ActionBazaar. The
@Named
annotation
has been placed on the class . The class will thus be available for use in unified EL ex-
pressions. The
Employee
class is marked as being request-scoped; each request will get a
new instance. In the next listing, an employee instance is referenced from the editEmploy-
ee.xhtml file.
Listing 12.3. Referencing employee instance from editEmployee.xhtml