Re: [Xsltforms-support] Dialog OK vs. cancel
Brought to you by:
alain-couthures
From: Klotz, L. <Lei...@xe...> - 2010-02-02 21:53:23
|
Although not immediately implementable, one proposal the WG is considering is having the dialog use its own instance and "submit" back to another, local model (i.e., <submission resource="#foo">). Some work by Charlie Wiecha and Rafah Hosn at IBM had been done on this in the past, under the name "XAC", with a "Russian Doll" composition of model-to-model communcation. As far as I know, though, no concrete proposal for syntax to do this has yet been proposed on the receiving end of the submission (I.e., what element has id="foo" and what happens.) A proposal for how to move forward on that would be great, and would probably be the same execution overhead as an "undo" instance, yet provide additional abstract power and recursive composition facilities, and enhance modularity. Leigh. -----Original Message----- From: Micah Dubinko [mailto:Mic...@ma...] Sent: Tuesday, February 02, 2010 1:18 PM To: xsl...@li... Subject: [Xsltforms-support] Dialog OK vs. cancel Now that we have dialogs (thanks Alain!) we are looking in to ways to make them work with two possible close cases, OK and Cancel (equivalently, the X button in the upper-right). What do people think of this technique? 1) Create a separate instance called "undo". Upon opening the dialog, copy over the main instance data into "undo". If the user dismisses the dialog with OK, proceed as usual. If the user hits cancel or X, copy the stored instance back over the first one, thus rolling back whatever changes had been made in the dialog. If you have nested dialogs, you'd need to be more careful. Is there a better/more straightforward way to accomplish this? -m ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support |