2012-01-23 notesUntil now, model variables were re-evaluated lazily whenever the "default evaluation context" of a model (that is the root element of the default instance if present) was needed. This was evaluated too often.
As of now: - XFormsModel.getBindingContext() throws
- XFormsModelSubmission.getBindingContext() throws
- XFormsModel.getDefaultEvaluationContext() returns the default evaluation context as last computed
- the default evaluation context and variables are computed when resetAndEvaluateVariables() is called:
- binds
- doRebuild()
- applyCalculateBinds()
- applyComputedExpressionBinds()
- applyValidationBinds()
- submission
- doSubmit()
- beginning of the submission
- handleSubmissionResult()
- doSubmitReplace()
- before processing response of async submission
- sendSubmitDone()
- sendSubmitError()
2012-02-25 notesShadowing of model variables in the view has been fixed.
Until now, other model variables could incorrectly be seen in transparence. Say you had switched between model1 and model2, in the view you would see the following variables: - view variables up to switch to model2
- model2 variables (incorrect)
- view variables up to the top
- model1 variables (incorrect)
Now, you see: - view variables up to the top
- model2 variables
|