Skip Headers
Oracle® Application Development Framework Developer's Guide
10g Release 3 (10.1.3)
B25386-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

12.1 Introduction to Validation and Conversion

ADF Faces input components have built-in validation capabilities. You set validation on a component either by setting the required attribute or by using one of the prebuilt ADF Faces validators. ADF applications also have validation capabilities at the model layer, allowing you to set validation on a binding to an attribute. In addition, you can create your own ADF Faces validators to suit your business needs.

ADF Faces input components also have built-in conversion capabilities, which allow users to enter information as Strings, and which the application can automatically convert to another data type, such as Date. Conversely, data stored as something other than a String can be converted to a String for display and updating.

Many components, such as the DatePicker, automatically provide this capability. Other components, such as inputText, automatically add a converter when you drop an attribute that is of a type for which a converter exists.

When validators or converters fail, associated error messages can be displayed to the user. These messages can be displayed in dialogs for client-side validation, or they can be displayed on the same page.

Read this chapter to understand: