- From: Chaudhuri, Hiran (Software AG) <g.s31d05b@lfstad.bayern.de>
- Date: Wed, 5 Jun 2002 17:57:27 +0200
- To: "'www-forms@w3.org'" <www-forms@w3.org>
Hi there. Together with my last problem concerning wizards (how to skip some steps) now I realize a second one: What I need is validation of the entered data upon each switch to the next page. I tried to place two actions in my button, but the result looks the same (Chiba will execute the switch, but the error message is no longer rendered as it belongs to a field in an now nonactive switch case. <xforms:button> <xforms:caption>Next</xforms:caption> <xforms:action> <xforms:revalidate/> <xforms:toggle xforms:case="screen2"/> </xforms:action> </xforms:button> What I need is to trigger the toggle if and only if the revalidate was successful. Is there anything about that in the XForms WD i might have missed? Hiran > -----Ursprüngliche Nachricht----- > Von: Plechsmíd Martin [mailto:Martin.Plechsmid@merlin.cz] > Gesendet: Montag, 3. Juni 2002 17:20 > An: 'Chaudhuri, Hiran (Software AG)'; 'www-forms@w3.org' > Betreff: RE: Wizards in XForms > > > Hi. > > You can have a dedicated branch in the instance data (or a > whole model) for > each page in the wizard. Then you can make relevant only the > branch that > corresponds to the particular step of the wizard. But this > would require, of > course, that you copy the data you want to have at multiple > pages from one > branch to another, and to collect them finally at one place > for submitting > them. > > We chose, instead, to extend XForms and to allow the > "relevant" attribute > also on groups and other form controls. In case of a more > comlicated wizard, > this would be probably a more suitable approach. > > Martin. > > > > -----Původní zpráva----- > > Od: Chaudhuri, Hiran (Software AG) > [mailto:g.s31d05b@lfstad.bayern.de] > > Odesláno: 3. června 2002 17:05 > > Komu: 'www-forms@w3.org' > > Předmět: AW: Wizards in XForms > > > > > > > > Hi, Micah. > > > > [Sorry, I sent this mail to you already - but I missed > > sending it to the > > list, so here is the 'official' version] > > > > > > I also thought of a multi-page form. But how do I decide per switch > > statement which form is getting displayed? Or is this implementation > > dependent? > > > > The current chiba implementation will always render all forms > > inside one > > document. And considered the introduction in the working > > draft of XForms, > > the analogy to HTML forms is wished. A web browser will > > always render all > > forms in a HTML page, which really serves a use case. So I > > believe you need > > to specify something here (like a parameter that starts single-form > > rendering), or a wizard must consist of several XForm documents. > > > > Your other approach with switch-statements can reside in one form > > completely, so the multi-form grayzone is worked around. On > > the other hand I > > consider such a form to look very complex and it will be more > > difficult to > > maintain or generate with tools. However I will try that. > > > > By the way, what XForms implementation do you consider as > > "closes to the > > spec"? > > > > Hiran > > > > -----Ursprüngliche Nachricht----- > > Von: Micah Dubinko [mailto:MDubinko@cardiff.com] > > Gesendet: Montag, 3. Juni 2002 11:45 > > An: 'Chaudhuri, Hiran (Software AG)' > > Cc: 'www-forms@w3.org' > > Betreff: RE: Wizards in XForms > > > > > > A "wizard" is just a special rendering of a multiple-page > form, right? > > > > To do that, you can use the <switch> construct, with each > > panel inside a > > <case>. Separately, you can use <button>s that fire > <toggle> events to > > change which panel is presented. > > > > Try this out and let us know how it works. > > > > Thanks, > > > > .micah > > > > -----Original Message----- > > From: Chaudhuri, Hiran (Software AG) > [mailto:g.s31d05b@lfstad.bayern.de] > Sent: Monday, June 03, 2002 1:54 AM > To: 'www-forms@w3.org' > Subject: Wizards in XForms > > > > Hi there. > > As I need to create some forms that need flexible use, I had a look at > XForms and am missing one feature (at least, it's not mentioned in the > XForms WD): Wizards. > > I have searched the mailing list archives for that topic, only to find > others have asked about it, but there has not been a > definitive answer. > > So how are you supposed to build a Wizard? Shall all wizard > pages reside in > one XForm document? Then how do you mark it as being a > wizard? Which is the > start page, and how do you switch to subsequent pages? How do > you ensure all > the pages operate with the same instance data? > > Hiran >
Received on Wednesday, 5 June 2002 11:57:19 UTC