sending events to repeated controls within an XBL component
Posted by
Philip.Cantin on
Aug 27, 2009; 10:34pm
URL: https://discuss.orbeon.com/sending-events-to-repeated-controls-within-an-XBL-component-tp45079.html
Hey All,
I'm a bit puzzled as to how to send events to repeated controls.
In the reproducible example attached, I have the main XHTML document which contains an 'idinfo' XBL component and a "Dispatch Event" trigger. When the "Dispatch Event" trigger is clicked, 'event1' is dispatched to the XBL component. 'Event2' is then dispatched by the <xbl:handler> element once 'event1' is observed. However, the observer for 'event2' is a trigger within a repeat, and I'd like to be able to have the event take place for ALL repeated triggers. At the moment, it seems to just take place with one of them (hence only one 'idinfo' element is being inserted within the 'test' instance).
What am I doing wrong here? I am contemplating wrapping an <xforms:dispatch> event around an <xforms:action> statement with the xxforms:iterate attribute, but I wanted to make sure this was possible, especially with nested elements.
Thanks in advance for any help or suggestions! :-)
---Philip
xforms-xbl-test2.zip