-
Bug
-
Resolution: Fixed
-
Major
-
8.5.1
-
Security Level: Jimmy
-
None
-
ZK 8.5.2 S1, ZK 8.6.0 S1, ZK 8.6.0 S2, ZK 8.6.1 S1
-
None
- imagine a generic form as following:
<window viewModel="@id('vm') @init('com.xy.RecordVM')" validationMessages="@id('vmsgs')"
form="@id('fx') @load(vm.record) @save(vm.record, before='save')">
<forEach items="@load(vm.fields" var="field">
<textbox value="@bind(fx[field.id]) @validator(vm.validator, field=field)" />
</forEach>
</window>
- user enters wrong value into 1st textbox -> validator shows error, OKAY
- user enters correct value into 2nd textbox -> value of 1st textbox is reloaded from bean, wrong value is overwritten, NOT OKAY
TrackerNode.getDependents(property) wrongly detects a dependency between binded values because of identical script snippet [field.id]. That's completely misleading because script evaluates very different depending on forEach loop variable.