-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi ZK team,
I have a problem:
I have a grid with combobox in each row. Some of them share comboitems. I have cases, when certain comboitem cant be selected in two comboboxes at the same time.
Thats why I need to make a validation after combobox selectedItem being changed. But when I trying to use something like that
<combobox readonly="true" model="@load(each.suitableItemsList)" selectedItem="@bind(each.selectedDart)@validator('foo.bar.Validator')>
and validation doesnt pass, binded item stays unchanged(thats correct) BUT selectedItem being changed on view(thats wrong).
Is it conceived behaviour? Could you please give me any suggestions on how can I avoid this? Or how can I rollback item selection on my view?
Thanks.
Strange situation,
One thing you can do is call from your validator a global command
to your vm.
In the vm you do a notifyChanged
of the selectedDart
. (or more if you have multiple issues).
It is not the way it should be, it's a work around.
Greetz chill.
Asked: 2014-05-29 22:32:36 +0800
Seen: 22 times
Last updated: May 29 '14
ZK + Hibernate validation using JSR
howto change Datebox format error message
Session Timeout on Upload Button [closed]
ZK MVVM Validation Focus on First Error
how to clear validation messages
Create Crud of a User that has a collection of books
could binder.sendCommand return a result of Validation?
textbox constraint emailadress upgrade to disallow mycomp.com [closed]