- From: John Boyer <boyerj@ca.ibm.com>
- Date: Fri, 16 May 2008 16:48:10 -0700
- To: Erik Bruchez <ebruchez@orbeon.com>
- Cc: "public-forms (new)" <public-forms@w3.org>, public-forms-request@w3.org, www-html-editor@w3.org
- Message-ID: <OF46500422.45F7092D-ON8825744B.0082777A-8825744B.0082C4CC@ca.ibm.com>
Hi Erik, Yes, the inner action can have event attributes on it, yes they will set it up as handler, and yes the inner action still does run as part of the outer action even if it has event attribute on it. The same set of statements would be true of XML events elements were used to remotely refer to the inner action and set it up as a handler for events. When the so-called inner action is directly invoked to handle the event for which it is directly registered, it is not considered to be an "inner handler" just because it is inside of another xforms action. Specifically, it will execute deferred updates when finished if it was directly invoked. It only continues to defer updates if it is executed by the outer handler. Cheers, John M. Boyer, Ph.D. Senior Technical Staff Member Lotus Forms Architect and Researcher Chair, W3C Forms Working Group Workplace, Portal and Collaboration Software IBM Victoria Software Lab E-Mail: boyerj@ca.ibm.com Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw Erik Bruchez <ebruchez@orbeon.com> Sent by: public-forms-request@w3.org 05/16/2008 04:32 PM To "public-forms (new)" <public-forms@w3.org> cc www-html-editor@w3.org Subject Question about nested XForms actions and ev:observer All, Consider the following submission, located in a proper place so that the outermost <xforms:action> element can react to a DOMActivate event: <xforms:action ev:event="DOMActivate"> <xforms:send submission="my-submission"/> <xforms:action ev:event="xforms-submit" ev:observer="my- submission"> ... </xforms:action> <xforms:action ev:event="xforms-submit-done" ev:observer="my- submission"> ... </xforms:action> </xforms:action> A few questions: * Is it legal for the nested actions to have ev:event and ev:observer attributes? * If so, do the nested <xforms:action> element actually register as event handlers on the specified observers? * Are those executed in the flow of the outermost action, if that action is triggered? -Erik PS: Clearly, I could write these actions as follows: <xforms:action ev:event="DOMActivate"> <xforms:send submission="my-submission"/> </xforms:action> <xforms:action ev:event="xforms-submit" ev:observer="my-submission"> ... </xforms:action> <xforms:action ev:event="xforms-submit-done" ev:observer="my- submission"> ... </xforms:action> But still, bear with me and assume I want to do the nesting, for the sake of seeing these questions answered ;-) -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/
Received on Friday, 16 May 2008 23:49:19 UTC