multiple - Multiple Selection

Allows multiple items to be selected.

Category

basics

Syntax

multiple="true|false"

Usage

In Design mode, click the top tab under Properties and look for Allow multiple selections, or click All Properties and look for multiple under basics.

By default, multiple selections are not allowed.

Examples

This List Box control allows both items to be selected.
<xp:listBox id="listBox1" value="#{document1.fruit}" multiple="true">
	<xp:selectItem itemLabel="Apples" itemValue="apples"></xp:selectItem>
	<xp:selectItem itemLabel="Oranges" itemValue="oranges"></xp:selectItem>
</xp:listBox>