How to do this with zk MVVM
i want to save a bean but with condition if the type is personal than save into personal, else into company
<textbox value="@save(vm.personal ? vm.masterCifPersonal.cifId : vm.masterCifCompany.cifId)" width="100px" maxlength="10"/>
but when binder save into bean, this exception appear
Illegal Syntax for Set Operation
My tip is to modify your code and use a temporary var:
and modify your setter as