Consider the following code:
Here we bind the control's "value.id" property to some other "id" property in the model. This however is not allowed! The reason is this: when it is time to move the model values to the control (when the request leaves the server) then this binding would:
- call this.getId() to get the id value from the model
- call li.getValue().setId() with the id gotten above
This does not change the control's value, but it changes a property of that value! The net effect is that the control assumes that nothing changed.
To prevent this bug DomUI will throw an exception when this kind of binding is attempted.
See issue #2 on GitHub