O'Reilly logo

Oracle ADF Faces Cookbook by Amr Gawish

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Validating and Converting Inputs

This chapter will cover the following topics:

  • Adding conversion
  • Creating a custom converter
  • Adding client-side capabilities to the converter
  • Adding validation
  • Creating a custom JSF validator
  • Adding client-side capabilities to the validator
  • Enhancing the Faces messages user experience

Introduction

Taking input from users is risky, and without the right validation and conversion you won't be able to verify the data entered by users. Validation is understandable, but what is conversion? In order to understand converters, let's get back to the JSF lifecycle.

Any web application stores data of many object types, such as numbers and dates, in the model layer. When this data is viewed in a client browser, the user interface ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required