-
FEATURED COMPONENTS
First time here? Check out the FAQ!
We have just upgraded to ZK8.
We have a lot of forms as follows:
<fromcomponent form="@id('formData') @load(vm.dataModel) @save(vm.dataModel, before='doSaveDataModel')" formDataModified="@load(formDataStatus.dirty)">
........
The formComponent setFormDataModified method makes the submit button visible if dirty is true.
In ZK8 I notice if I change a text field on the form then the formDataStatus.dirty returns true and the submit button is displayed. However if I change the text field value back to the previous value then the formDataStatus.dirty still returns true.
This behaviour wis different to ZK7 where the formDataStatus.dirty would return false if the text field value was changed back to the original.
Is there anything else I need to implement to make it work the way it used to in ZK7 ?
No this functionality has been removed in ZK8. Since the new Form binding is based on real objects and proxies around them a proxy once updated is considered "dirty" until it is submitted or reset.
Asked: 2017-08-09 08:44:11 +0800
Seen: 15 times
Last updated: Aug 10 '17