-
Bug
-
Resolution: Invalid
-
Major
-
None
-
6.5.0
-
firefox
chosenbox not work in listbox (in listcell) with MVVM
throw exception org.zkoss.zk.ui.UiException: Listitem's parent must be Listbox, not <Chosenbox lC6Pi8>
{SAMPLE CODE BELOW}ZUL page code as :-
<listcell >
<chosenbox model="@load(vm.entityMasterList)">
</chosenbox>
</listcell>
ViewModel code as :-
public ListModel getEntityMasterList()
/**
- Class CustomerSortComparator
- @author Administrator
*
*/
class CustomerSortComparator implements Comparator<Object>Unknown macro: { public int compare(Object key, Object value) { String idx = Objects.toString(key); if (idx.isEmpty()) return 0; return idx != null && value != null && idx.length() > 0 && Objects.toString(((CtEntityMaster)value).getEntityCode().toUpperCase()).startsWith(idx.toUpperCase()) ? 0 : 1; } }