Chapter 2. Managed Beans

   

Topics in This Chapter

  • "Definition of a Bean" on page 37

  • "Message Bundles" on page 41

  • "A Sample Application" on page 45

  • "Backing Beans" on page 52

  • "Bean Scopes" on page 53

  • "Configuring Beans" on page 55

  • "The Syntax of Value Binding Expressions" on page 62

A central theme of web application design is the separation of presentation and business logic. JSF uses beans to achieve this separation. JSF pages refer to bean properties, and the program logic is contained in the bean implementation code. Because beans are so fundamental to JSF programming, we discuss them in detail in this chapter.

The first half of the chapter discusses the essential features of beans that every JSF developer needs to know. We then present an example program that puts these essentials to work. The remaining sections cover more technical aspects about bean configuration and value binding expressions. You can safely skip these sections when you first read this book, and return to them when the need arises.



core JavaServer Faces
Core JavaServer Faces
ISBN: 0131463055
EAN: 2147483647
Year: 2003
Pages: 121

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net