// fill the object with the components data
doWriteComponentsToBean(aRight);
// get the selected object from the listbox
Listitem item = this.rigType.getSelectedItem();
if (item == null) {
try {
Messagebox.show("Please select a right type !");
} catch (final InterruptedException e) {
throw new RuntimeException(e);
}
return;
}
ListModelList lml1 = (ListModelList) rigType.getListModel();
SecTyp typ = (SecTyp) lml1.get(item.getIndex());
aRight.setRigType(Integer.valueOf(typ.getStpId()));
// save it to database
try {
getSecurityService().saveOrUpdate(aRight);