-
Book Overview & Buying
-
Table Of Contents
Oracle ADF Faces Cookbook
By :
The richTextEditor component provides an input field that can accept text with formatting. You can copy the formatted text from a place and paste it inside the richTextEditor component, use the richTextEditor controls to format the text inline by using the formatting toolbar that comes with the component, or edit the HTML source file directly using the toolbar button that toggles between the HTML mode and normal mode.
In this recipe, we will add the employee's biography attribute as richTextEditor to the Employees form we have.
In order to add the richTextEditor component, follow the ensuing steps:
Open the inputComponets.jsf page.
Drag the Biography attribute under EmployeesView1 in Chapter4AppModuleDataControl from the Data Control pane and drop it inside the panel form layout.
Navigate to Text | ADF Input Text w/ Label.
Right-click on the inputText component and navigate to Convert to… | Rich Text Editor.
While selecting the inputText component...
Change the font size
Change margin width
Change background colour