I think I have stucked on some basic stuff, but I have not found clear explanation.
So, I have a View, which is my template, let’s call it InputTemplate. Template has a Label and TextField inside. text property of TextField is bidirectionaly binded to View parameter called value (which is bidirectional, also). The goal is, when I change the parameter, value inside TextField also change, and when I type in something to TextField directly, parameter will also change. This is clear.
Then, I am putting this InputTemplate into other View, called ParentView. I bind bidirectionaly value parameter of a template to the session parameter. The goal here is to store the value from InputTemplate inside session. I hope, this is clear.
Now, when I open a ParentView, which value I will see in my InputTemplate text field? What I have faced:
- Sometimes default value of InputTemplate goes to session parameter
- Sometimes session parameter goes to InputTemplate
Can I somehow control this behaviour, e.g. Session wins? Maybe there is other way of handling such case?