-
Bug
-
Resolution: Invalid
-
Normal
-
None
-
8.0.2
If you have a listbox like:
<listbox id="articleListbox" checkmark="true" mold="paging" pageSize="20"
model="@load(vm.articleList)" selectedItem="@bind(vm.selectedArticle)"
onSelect="vm.onSelectArticleListbox()">
and in the viewmodel you've got a method
@NotifyChange("*")
public void onSelectArticleListbox() {
try
}
zk will not notice that the selectedItem of the listbox just changed again.
if you change the method to directly reload the component it works:
public void onSelectArticleListbox() {
try{ checkValidation(rootWindow); }
catch (WrongValuesException e)
{ selectedArticle = prevSelectedArticle; getDataBinder().loadComponent(articleListbox, false); throw e; }finally
{ prevSelectedArticle = selectedArticle; }}