} catch (DataAccessException e) {
ZksampleMessageUtils.showErrorMessage(e.getMostSpecificCause().toString());
}
// now synchronize the listBox in the parent zul-file
final ListModelList lml = (ListModelList) listBoxOrderOrderPositions.getListModel();
// Check if the orderPosition object is new or updated
// -1 means that the obj is not in the list, so it's
// new.
if (lml.indexOf(orderposition) == -1) {
} else {
lml.remove(lml.indexOf(orderposition));
}
// +++++++ now synchronize the listBox in the parent
// zul-file
// +++ //
Listbox listBoxOrderArticle = orderListCtrl.getListBoxOrderArticle();
// now synchronize the orderposition listBox
ListModelList lml3 = (ListModelList) listBoxOrderArticle.getListModel();
// Check if the orderPosition object is new or updated
// -1 means that the obj is not in the list, so it's
// new.
if (lml3.indexOf(orderposition) == -1) {
} else {
lml3.remove(lml3.indexOf(orderposition));
}
orderPositionDialogWindow.onClose(); // close
// the
// dialog