Chapter 6. Conversion and Validation

   

Topics in This Chapter

  • "Overview of the Conversion and Validation Process" on page 205

  • "Using Standard Converters" on page 207

  • "Using Standard Validators" on page 217

  • "Programming with Custom Converters and Validators" on page 223

  • "Implementing Custom Tags" on page 248

In this chapter, we discuss how form data is converted to Java objects and how the conversion results are checked for correctness. The JSF container carries out these steps before updating the model, so you can rest assured that invalid inputs will never end up in the business logic.

We first look at the concepts behind conversion and validation process. Then we discuss the standard tags that JSF provides for conversion and validation. These tags suffice for the most common needs. Next, you see how to supply your own conversion and validation code for more complex scenarios. Finally, you learn how to implement custom tags reusable converters and validators that can be configured by page authors.



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