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

Using the inputColor component

The inputColor component allows users to pick a color from a color palette. It presents a text input field for entering a color's hexadecimal code, usually in the format #RRGGBB. The component also displays a button for picking colors from a palette in a pop up.

In this recipe, we will add an inputColor component to the Employees form created in the first recipe to show the Favorite Color attribute.

How to do it...

In order to add inputColor, follow the ensuing steps:

  1. Open the inputComponents.jsf page.
  2. Drag the FavColor attribute under EmployeesView1 in Chapter4AppModuleDataControl from the Data Control pane and drop it inside the panel form layout.
  3. Select Text from the drop-down menu and select ADF Input Text w/Label ...

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