The binding mode defines how the data sources are bound. The different model implementations require specific binding modes. The resource model, for example, only supports one-time binding, that is, a binding from the model to the view.
SAPUI5 provides the following binding modes:
One Way: One-way binding means a binding from the model to the view; value changes in the model update all corresponding bindings and the view
Two Way: Two-way binding means a binding from the model to the view and from the view to the model; value changes in the model and in the view update all corresponding bindings and the view and model, respectively
One Time: One-time binding means from model to view once.
The following table shows, which binding modes the respective binding models support:
The resource model only supports the one-time binding mode because it deals with static texts only.
When a model instance is created, the instance has a default binding mode. All bindings of this model instance have this binding mode as their default.
The following table shows the supported binding modes and their default binding mode for each model implementation.
|Model||Default binding mode|