//triggered by coerceToUi(), ignore this
Executions.getCurrent().removeAttribute("zkoss.zkplus.databind.ON_SELECT"+cbbox.getUuid());
return TypeConverter.IGNORE;
}
if (val != null) {
final ListModel model = cbbox.getModel();
//Bug #2010389
//1. loadAll
//2. setModel (by 1.), post onInitRender.
//3. setSelectedItem (by 1.), coerceToUi, post onSelect with OLD Comboitem.
//4. onInitRender(by 2.), syncModel and reconstruct new Comboitem(s) list, fire onInitRenderLater
//** 5. save (by 3.), coreceToBean with OLD Comboitem, cannot locate the index with indexOf()
//6. onInitRenderLater(by 4.), setSelectedItem, coerceToUi, post onSelect with new Comboitem
//no model case, assume Comboitem.value to be used with selectedItem
return model != null ? model.getElementAt(cbbox.getItems().indexOf(val)) : ((Comboitem) val).getValue();
}
return null;
}