Hi,
I have a problem with xxforms:dialog control in modal mode. Even if I add attribute "level" with value "modal", displaying dialog using action xxforms:show, does not stop execution of other actions following xxforms:show. Is this expected behavior? And is there any way to pause execution of these actions or should I look for another workaround? Example of this problem, is attached to this message. Message box "To be continued..." should not appear until user presses "Hide dialog" button, that is right after xxforms:hide action is executed. Thanks, Jurgis -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws test-dialog.xhtml (3K) Download Attachment |
Jurgis,
The reason your message appears when the dialog is opened is because it is in the DOMActivate action for the trigger to open the dialog .... If you would like it to only show after the dialog has closed then you would need to move it to the other trigger .... Like this ... <xforms:trigger> <xforms:label>Hide dialog</xforms:label> <xforms:action ev:event="DOMActivate"> <xxforms:hide dialog="myDialog"/> <xforms:message level="modal" value="'To be continued...'" /> </xforms:action> </xforms:trigger> As far as I know having a modal dialog does not stop things from happening .... It just forces the dialog to stay focused and the other form elements to stay out of focus. Hope this helps. Steve STEVE LENHART WEB DEVELOPER TELEFLEX CORPORATE IT 155 SOUTH LIMERICK ROAD LIMERICK, PA 19468 TEL> 610-948-1744 MOB> 484-919-5578 EMAIL> [hidden email] -----Original Message----- From: Jurģis Lukss [mailto:[hidden email]] Sent: Sunday, August 19, 2007 12:12 PM To: Orbeon Maillist Subject: [ops-users] Modal dialog does not stop actions Hi, I have a problem with xxforms:dialog control in modal mode. Even if I add attribute "level" with value "modal", displaying dialog using action xxforms:show, does not stop execution of other actions following xxforms:show. Is this expected behavior? And is there any way to pause execution of these actions or should I look for another workaround? Example of this problem, is attached to this message. Message box "To be continued..." should not appear until user presses "Hide dialog" button, that is right after xxforms:hide action is executed. Thanks, Jurgis -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Thanks Steve, but unfortunately your solution won't help in my
situation. I need to be able to pause execution of other actions right after xxforms:show action, and wait until dialog is closed, because dialog has to fill in some important instance data that those other actions, that follow xxforms:show, will use. And I cannot transfer these actions to dialog's "Hide dialog" trigger, because this dialog will be common to many different action sequences and I don't want to put all that code in this dialog, as that would make code hard to maintain. I just want to know, if xxfroms:show action will ever stop execution of other actions, like xforms:send waits for a response and only then executes following actions? Is it there a plan to implement this? Thinking of it more.. I think it can't be easily done in Orbeon, because every xxforms:dialog is just a div with xforms content and lightbox like features, and it has to receive and act on every xforms event.. so it cannot stop all xforms actions. And after xxforms:show action, dialog would have to remember from where it was called an where it should resume execution after xxforms:hide action. Or something like that... Steve Lenhart wrote: > Jurgis, > > > The reason your message appears when the dialog is opened is because it > is in the DOMActivate action for the trigger to open the dialog .... If > you would like it to only show after the dialog has closed then you > would need to move it to the other trigger .... Like this ... > > > <xforms:trigger> > <xforms:label>Hide dialog</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xxforms:hide dialog="myDialog"/> > <xforms:message level="modal" value="'To be continued...'" /> > </xforms:action> > </xforms:trigger> > > > As far as I know having a modal dialog does not stop things from > happening .... It just forces the dialog to stay focused and the other > form elements to stay out of focus. > > > Hope this helps. > > > Steve > > > > > > STEVE LENHART > WEB DEVELOPER > TELEFLEX CORPORATE IT > 155 SOUTH LIMERICK ROAD > LIMERICK, PA 19468 > TEL> 610-948-1744 > MOB> 484-919-5578 > EMAIL> [hidden email] > > -----Original Message----- > From: Jurģis Lukss [mailto:[hidden email]] > Sent: Sunday, August 19, 2007 12:12 PM > To: Orbeon Maillist > Subject: [ops-users] Modal dialog does not stop actions > > Hi, > > I have a problem with xxforms:dialog control in modal mode. Even if I > add attribute "level" with value "modal", displaying dialog using action > > xxforms:show, does not stop execution of other actions following > xxforms:show. Is this expected behavior? And is there any way to pause > execution of these actions or should I look for another workaround? > > Example of this problem, is attached to this message. Message box "To be > > continued..." should not appear until user presses "Hide dialog" button, > > that is right after xxforms:hide action is executed. > > > Thanks, > > Jurgis > > > > Jurģis Lukss SIA "Mikrokods" mob. 26458439 -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jurģis Lukss wrote:
> Thanks Steve, but unfortunately your solution won't help in my > situation. I need to be able to pause execution of other actions right > after xxforms:show action, and wait until dialog is closed, because > dialog has to fill in some important instance data that those other > actions, that follow xxforms:show, will use. And I cannot transfer these > actions to dialog's "Hide dialog" trigger, because this dialog will be > common to many different action sequences and I don't want to put all > that code in this dialog, as that would make code hard to maintain. > > I just want to know, if xxfroms:show action will ever stop execution of > other actions, like xforms:send waits for a response and only then > executes following actions? Is it there a plan to implement this? would be desirable though. This said, in some cases you would still like xxforms:show to behave asynchronously. So this may have to be an option. > Thinking of it more.. I think it can't be easily done in Orbeon, because > every xxforms:dialog is just a div with xforms content and lightbox like > features, and it has to receive and act on every xforms event.. so it > cannot stop all xforms actions. And after xxforms:show action, dialog > would have to remember from where it was called an where it should > resume execution after xxforms:hide action. Or something like that... You are right, this would require the server to save the current execution context for actions, and be able to resume later. This is not impossible to do at all, but it would be quite a lot of work to implement so don't expect it too soon unless somebody sponsors the feature or implements it... -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |