Login  Register

<xforms:action> not always firing after value changed

Posted by Stephanie Hall (TT) on Nov 13, 2009; 9:38pm
URL: https://discuss.orbeon.com/xforms-action-not-always-firing-after-value-changed-tp621200.html

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



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

example.js (762 bytes) Download Attachment
example.jsp (3K) Download Attachment