10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12<br />

CHAPTER 12<br />

Developing with <strong>Java</strong>Server FacesTechnology<br />

Chapter 11, “Using <strong>Java</strong>Server Faces Technology in JSP Pages,” shows how the page author can<br />

bind components to server-side objects by using the component tags and core tags on the JSP<br />

page. <strong>The</strong> application developer’s responsibility is to program the server-side objects of a<br />

<strong>Java</strong>Server Faces application. <strong>The</strong>se objects include backing beans, converters, event handlers,<br />

and validators.<br />

This chapter uses the Duke’s Bookstore application (see “<strong>The</strong> Example <strong>Java</strong>Server Faces<br />

Application” on page 317) to explain all of the application developer’s responsibilities, including<br />

■ Programming properties and methods of a backing bean<br />

■ Localizing an application<br />

■ Creating custom converters and validators<br />

■ Implementing event listeners<br />

■ Writing backing bean methods to perform navigation processing and validation and handle<br />

events<br />

Writing Bean Properties<br />

As explained in “Backing Beans” on page 307, a backing bean property can be bound to one of<br />

the following items:<br />

■ A component value<br />

■ A component instance<br />

■ A Converter implementation<br />

■ A Listener implementation<br />

■ A Validator implementation<br />

<strong>The</strong>se properties follow <strong>Java</strong>Beans component conventions (see “<strong>Java</strong>Beans Components” on<br />

page 165).<br />

377

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!