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

Adding conversion

In order to provide conversion from user string inputs to other object data types, ADF Faces input needs to be converted from string to the data type object and vice versa.

ADF Faces provides many converters out of the box so the developer doesn't need to create his own. Every input can be assigned to only one converter.

In this recipe, we will create an employee form that converts from java.util.Date to java.lang.String and from any number like double to java.lang.String and vice versa.

The application for this recipe and its model has been created for you. You can see it by cloning the AddingConversion application from the Git repository.

How to do it…

To know how to add conversions, perform the following steps:

  1. Open the AddingConversion ...

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