id - Name

Identifies a control uniquely among all controls on a page.

Category

basics

Syntax

id="name"

Usage

In Design mode, click the top tab under Properties and look for Name, or click All Properties and look for id under basics.

Most controls receive a default identifier consisting of the control tag plus an integer, for example, inputText1 and inputText2. You can change or remove the identifier although the simplest practice is to leave it as is.

Assigning an identifier that duplicates the identifier of another control on the page is illegal.

The identifier must be a static value.

Examples

This Edit Box control is named inputText1.
<xp:inputText id="inputText1" value="#{document1.subject}"></xp:inputText>