defaultSelected - Default Selected
Specifies whether a control is initially selected or cleared.
Category
basicsSyntax
defaultSelected="true|false"
Usage
In Design mode, click the top tab under Properties and look for Selected by default, or click All Properties and look for defaultSelected under data.This
property applies to a control that can be selected or cleared such
as a radio button. By default this property is false
.
Examples
This Radio Button control is selected by default.<xp:radio text="apples" id="radio1" value="#{document1.fruit}"
groupName="fruit" selectedValue="apples" defaultSelected="true">
</xp:radio>