selectList.setEvtBehavior("submitOnChange");
Iterator<CCLicense> iterator = cclookup.getLicenses(ccLocale).iterator();
// build select List - first choice always 'choose a license', last always 'No license'
selectList.addOption(T_select_change.getKey(), T_select_change);
while (iterator.hasNext()) {
CCLicense cclicense = iterator.next();
selectList.addOption(cclicense.getLicenseId(), cclicense.getLicenseName());
if (selectedLicense != null && selectedLicense.equals(cclicense.getLicenseId()))
{
selectList.setOptionSelected(cclicense.getLicenseId());
}
}
selectList.addOption(T_no_license.getKey(), T_no_license);
if (selectedLicense != null) {
// output the license fields chooser for the license class type