checkedValue - Value when checked
Specifies the value of a data element bound to a selected (as opposed to cleared) control.
Category
dataSyntax
checkedValue="value"
Usage
In Design mode, click Data under Properties and look for Value when checked, or click All Properties and look for checkedValue under data.This
property applies to a control that can be selected or cleared such
as a check box, and defaults to the string true
.
Examples
This Check Box control assigns a data value depending on whether the box is selected (default) or cleared.<xp:checkBox id="checkBox2" text="Use user name instead of Anonymous"
defaultChecked="true" value="#{document1.loginname}" uncheckedValue="Anonymous"
checkedValue="#{javascript:session.getUserName()}">
</xp:checkBox>