From: Bas C. <ba...@pl...> - 2003-11-19 00:11:06
|
Jason Sweat wrote: >One questions I have been asked from several sources is how to create >multi-page forms in combination with Phrame. I sketched out an example of how >I do this here http://www.sitepointforums.com/showthread.php?p=998649 if you >are interested. > > Dear Jason, This is a nice piece of work! I have thought about the "wizard" problem many times, but I never addressed it in a structural way. I'm delighted to see that you took the first step. Therefore I'd like to express my thoughts about wizards: I define workflow as a finite tree of process steps (nodes) and a wizard as a manager of workflow with the following properties: 1) It evaluates the values that an agent submitted in each process step to decide what the next step in the tree will be; 2) It remembers the path through all previous process steps and the corresponding submitted data for those steps; 3) It executes a persistent transaction when an agent committed the leaf step in the tree. The first property is partially satisfied in the current Phrame release: an ActionForm validates the quality of submitted data and the corresponding Action forwards the controller to the next step based on that data. The mappings file is currently missing the syntactic sugar to easily move backwards in the process tree: one should define a forward to every child for a given parent and one should define a forward to every parent for a given child. In my opinion your code could be a good starting point to address the second and third property of a wizard. I'm very interested in other opinions this subject! Kind regards, Bas -- Home page: http://home.planet.nl/~basca |