defaultValue - Default Value

Specifies an initial value for a bound data element.

Category

basics

Syntax

defaultValue="value"

Usage

In Design mode, click Data under Properties and look for Default value, or click All Properties and look for defaultValue under data.

If you specify a value not compatible with the data element, and the user does not change it, submission will fail with a type error.

Examples

This Edit Box control provides a default value.
<xp:inputText id="inputText1" value="#{document1.subject}" defaultValue="my subject">
</xp:inputText>