Chapter 8. Using Converters, Listeners, and Validators

The previous chapter described components and explained how to add them to a web page. This chapter provides information on adding more functionality to the components through converters, listeners, and validators.

• Converters are used to convert data that is received from the input components.

• Listeners are used to listen to the events happening in the page and perform actions as defined.

• Validators are used to validate the data that is received from the input components.

The following topics are addressed here:

• “Using the Standard Converters” on page 145

• “Registering Listeners on Components” on page 151

• “Using the Standard Validators” on page 152

• “Referencing a Backing Bean ...

Get The Java EE 6 Tutorial: Basic Concepts, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.