So on one of my pages I have a repeater, and each row in
this repeater has one radio button. The expected behavior is that each
time I click a radio button, it should fire the xforms-value-changed event and
run my Javascript function (we only want one of the radio buttons checked at
any time across all the rows). The problem is as follows: Say I
have 2 buttons. Clicking on the first one will fire the action event, then
clicking on the second radio button will fire the action event, but going back
and clicking the first button again will NOT trigger the event.
I know that description might’ve been a bit difficult
to understand, so I’ve attached a .jsp file and a .js file to
demonstrate.
Steps to reproduce:
1.
Click the “Add New Output” button
twice.
2.
Click on the first radio button. A “2”
should appear in the “Index of…” input box
3.
Click on the second radio button. The selected
button on the first should disappear. A “3” should appear in
the “Index of…” input box
4.
Click on the first radio button again. The
selected button on the second will not move, and the Index Of.. box will not
change even though both should’ve changed.
Is this a bug, or am I doing something wrong here?
Thanks!
Stephanie
Free forum by Nabble | Edit this page |