how do you dispatch events between things in nested repeat elements
Posted by
Jeremiah Jahn-4 on
Jan 16, 2010; 11:26pm
URL: https://discuss.orbeon.com/how-do-you-dispatch-events-between-things-in-nested-repeat-elements-tp1015845.html
if I have something like:
<xf:repeat ref="a" id="repeat1">
<xf:action ev:event="action-event1">
<xf:message>event1</xf:message>
</xf:action>
<xf:repeat ref="b" id="repeat2">
<xf:action ev:event="action-event2">
<xf:message>event2</xf:message>
</xf:action>
<xf:repeat ref="c" id="repeat3">
<xf:action ev:event="action-event3">
<xf:message>event3</xf:message>
</xf:action>
<xhtml:input type="checkbox" onclick="ORBEON.xforms.Document.dispatchEvent('repeat1', 'action-event1');"/>
<xhtml:input type="checkbox" onclick="ORBEON.xforms.Document.dispatchEvent('repeat2', 'action-event2');"/>
<xhtml:input type="checkbox" onclick="ORBEON.xforms.Document.dispatchEvent('repeat3', 'action-event3');"/>
</xf:repeat>
</xf:repeat>
</xf:repeat>
Shouldn't something like this let me popup the various messages for each repeat with proper context for each iteration? I have no problem dispatching events to the proper model, but I can't seem to be able to do it to a control. I've tried hidden triggers and all sorts of things. I'm assuming that I'm just having difficulty getting the getting the proper targetID for the dispatch event.
please help, thanks
--
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