CHAPTER 8Converting and Validating Data

This chapter examines in detail two important topics for all Web applications: data conversion and validation. JSF has software components to handle this aspect of Web application development. Data conversion is handled by converters, while validation is handled by validators. The main point of conversion is to guarantee that the application’s business logic only deals with data that is of the expected Java language type. The main point of validation is to assure that the properly typed data has been validated against the application’s specific constraints. Systems that make such a guarantee allow for easier-to-develop business logic, since most of the tedious error checking and error handling is done outside ...

Get JavaServer Faces 2.0, The Complete Reference 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.