Rich Text Area

Allows the user to enter text data. Unlike other text input components, Rich Text Area offers a set of rich text functions that allows formatting of the text using different fonts, colors, and styles. The input control is usually bound to data storage, such as a database or a bean. When a page with the Rich Text Area component is submitted, the content of the input field is stored in the specified location, for example, a database column or a bean property.

 

Component at design time

Drag and drop an

Rich Text Area component onto the page:

The

Rich Text Area component looks like this on the page:

 

Component at runtime

The

Rich Text Area component looks like this on the page during runtime:

 

Properties and All Attributes views

The Properties view for a component shows the most common set of attributes you can set on a component, and, depending on the component, you might also see options for adding controls, actions, or other components. To open the Properties view, click

Window | Show View | Properties.

These common attributes for the Rich Text Area component display on the r:inputRichText and Behavior tabs in the Properties view. See the All Rich Text Area attributes table for a complete list of attributes.

The All Attributes view shows a table of all the attributes you can set on a component, which includes those attributes you can access from the Properties view. To switch to the All Attributes view, click the

All Attributes icon in the upper right corner of the Properties view.

Table 1. All Rich Text Area attributes

Attribute name

Represented in Properties view by

Description

binding

Not represented

An expression that binds the component's instance (usually a user interface component) to a bean property (usually in the backing file).

height

Size: Height

Specifies the height of the component (by number of lines, pixels or percentage of the screen).

id

ID

Assigns a name to a component. Should be a unique name within a JSP.

readonly

Control is read-only

Specifies that the value of the component cannot be changed from its initial value.

rendered

Not represented

Can be set to true or false:

  • false - Component will not be rendered to the browser at runtime.

  • true - Component will get rendered. This is the default value.

value

Value

Specifies the initial text value for the component displayed at runtime. Contains information to be displayed, in the form of a specified value or a pointer to a dynamic value.

width

Size: Width

Specifies the initial width of the component. The width is given in pixels except in the case of a text input component where its value refers to the number of characters.

 

Related tasks

Adding rich text area components

Creating a Rich Text Editor

Updating a Rich Text Editor

Accessing user help for Rich Text Editor

Rich Text Editor example