Creating a Rich Text Editor
Using the Rich Text Editor, users can create and edit rich text
documents. This topic includes steps to create a Rich Text Editor on a JSP
page.
- To create a Open the Faces Components drawer in the palette.
- Select Input - Rich Text Area, and drag
it to the JSP page to create the Rich Text Editor.
- In the Bind To attribute field, point to
the root of the data object that is used as the contents for the Rich Text
Editor. You can click the Browse button to select a
data object from the list. This field can be automatically populated.
- In the Attribute view, you can set the width and height of the
Rich Text Editor using pixels or a percentage.
- If you want to display default text in the Rich Text Editor, type
the text in the Value attribute. This text will display
when a user accesses the JSP page or when the JSP page is refreshed by the
user.
- Select Read only if you want to prevent
the user from editing the content in the Rich Text Editor. The user can view
the initial content without modifying it.
- Save and run the JSP file.
- After placing the Rich Text Area control on a page and configuring
it, you can add other controls to the JSP file.