CForms Wizards

2004-11-12 Thread Reinhard Poetz
Sylvain Wallez wrote: Sylvain Wallez wrote: Sorry to rain on the party, but the new widget state stuff in CForms should make building multi-page forms a piece of cake. Off writing an example Done, I wrote my first wizard with CForms :-) Please update branch 2.1.x and point your browser to h

Re: CForms Wizards

2004-11-12 Thread Sylvain Wallez
Reinhard Poetz wrote: Sylvain Wallez wrote: Sylvain Wallez wrote: Sorry to rain on the party, but the new widget state stuff in CForms should make building multi-page forms a piece of cake. Off writing an example Done, I wrote my first wizard with CForms :-) Please update branch 2.1.x and po

Re: CForms Wizards

2004-11-12 Thread Sylvain Wallez
Sylvain Wallez wrote: That could be something like: function validateWizard() { currentPage.setState(WidgetState.INVISIBLE); // another one may be chosen below for (page in pageList) { page.setState(WidgetState.ACTIVE); if (page.validate()) { page.setState(WidgetState.INVISIBLE); }

Re: CForms Wizards

2004-11-13 Thread Reinhard Poetz
--- Sylvain Wallez <[EMAIL PROTECTED]> schrieb: > Reinhard Poetz wrote: > > > Sylvain Wallez wrote: > > > >> Sylvain Wallez wrote: > >> > >>> Sorry to rain on the party, but the new widget > state stuff in CForms > >>> should make building multi-page forms a piece of > cake. > >>> > >>> Off wri

Re: CForms Wizards

2004-11-14 Thread Daniel Fagerstrom
so that one can do the kind of things you asked for in the section about multi page forms in http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106672364131946&w=2. So now it is possible to write CForms wizards by writing javascript FSMs in the form definition using widget states. Or if y

Re: CForms Wizards

2004-11-14 Thread Sylvain Wallez
ced work of Jonas Ekstedt so that one can do the kind of things you asked for in the section about multi page forms in http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106672364131946&w=2. So now it is possible to write CForms wizards by writing javascript FSMs in the form definition usin

Re: CForms Wizards

2004-11-14 Thread Daniel Fagerstrom
-cocoon-dev&m=106672364131946&w=2. So now it is possible to write CForms wizards by writing javascript FSMs in the form definition using widget states. Or if you prefer, by using flowscript back-button magic, and automatic selection of what is validated based on what widgets you use in your

Re: CForms Wizards

2004-11-15 Thread Sylvain Wallez
://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106672364131946&w=2. So now it is possible to write CForms wizards by writing javascript FSMs in the form definition using widget states. Or if you prefer, by using flowscript back-button magic, and automatic selection of what is validated based

Re: CForms Wizards

2004-11-17 Thread Daniel Fagerstrom
Sylvain Wallez wrote: Daniel Fagerstrom wrote: Sylvain Wallez wrote: Daniel Fagerstrom wrote: Sure, IMO, you should always do a complete validation of _all_ widgets before binding your form model to business data. There is the same problem with widget states, you can have faulty event logic so