So, I was trying to figure out how to bind to a form where you define a team (using first name and last name for each team member) and define the team leader using a radio control.
Here is the problem:
In the above example, you will notice that in the first box there is the form and in the second box is the values of the variables that are bound to the form. The first name and last name change values without a problem but the team leader value doesn't update properly. As you change the value, the new team leader gets a "1" but the old one isn't reset to "0".
I came up with a solution but I'm not too fond of it.
In the above example, it is laid out the same except I am now using a "selected" variable that is then bound to the radio buttons. It requires the intermediary step of the watcher.
Can anyone come up with a more elegant solution to the problem? I really don't want to have to roll with this one.