Use the @SelectionList property to specify labels and values for a JSF selection list control.
Specify @SelectionList on a Record definition to be used on a JSP. You can also specify @SelectionList on a record declaration in a JSF Handler, but in this case, the values of labelItem and valueItem must match the case of the fields as defined in the Record part.
Record employee type basicRecord {
@selectionList {
labelItem=empName,
valueItem=empId;
}
}
empName STRING;
empId INT;
end