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

Creating a custom converter

When you create a custom converter, this converter will need to run on the server as per the JSF lifecycle.

In this recipe, we will create a custom converter to convert from oracle.jbo.domain.ClobDomain class to java.lang.String class and vice versa, which will be represented by the employee's Biography attribute.

In this recipe, the model has been created for you. You can continue from the previous recipe, or you can grab this project's recipe by cloning the CreatingCustomConverter application from the Git repository.

Getting ready

In order to create a custom JSF converter, we need to perform the following steps:

  1. Create a class that implements the javax.faces.convert.Conveter interface.
  2. Implement the following two methods: ...

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