for - Associated Client ID

Specifies a control for which to display error messages.

Category

basics

Syntax

for="id"
Where id is the identifier of a control on the XPage.

Usage

In Design mode, click the top tab under Properties and look for Show error messages for, or click All Properties and look for for under basics.

Examples

Here an input box is bound to numeric data and does not validate on the client side. Following is an error display for the input box.
<xp:inputText id="inputText3" value="#{document1.number}"
	disableClientSideValidation="true">
	<xp:this.converter>
		<xp:convertNumber type="number"></xp:convertNumber>
	</xp:this.converter>
</xp:inputText>
<xp:message id="message1" for="inputText3"></xp:message>
If the user enters a non-numeric value in the input box, the following message appears in the error display:
This field is not a valid number