> Jeremiah,
>
> You won't be able to dispatch an event to a control inside a repeat
> with JavaScript, because the XForms engine won't know from where the
> event is dispatched, which is necessary to do the dispatching
> properly. But in this case, why not use an <xforms:input> bound to a
> node of type xs:boolean? Then you can detect a xforms-value-changed,
> and run whatever action you need to run. This way you avoid writing
> JavaScript.
>
> Alex
>
> On Sat, Jan 16, 2010 at 3:26 PM, Jeremiah Jahn <
[hidden email]> wrote:
>> 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>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise
> Orbeon's Blog:
http://www.orbeon.com/blog/> My Twitter:
http://twitter.com/avernet>
> --
> 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