On Fri, 2003-10-31 at 01:13, Joe Latty wrote: > We have a pipeline much the same as the Woody Example (form1) where on > the GET request method we are initializing our form in a java class > (there are some prefill form values obtained through a SOAP call). > > When the form is POSTed (submitted) it calls our flow script, a method > (in this instance called airAvail).
I think it would be better to start immediately from the flowscript, create the form in the flowscript (so that you have the javascript-wrapper object around it), and then call the class that does the soap call from flowscript. In flowscript you can do myform.getWidget() to get the original Java Form object, which you can then pass on to your class. If the soap call returns an XML-document or a Java bean, then you might also be able to use the binding to fill up the form. > > Now in all the binding examples, inside the javascript functions, the > form is populated from a bean. In this situation we want to populate > the form from the request object using our binding. Populating the form from the request doesn't need a binding (the binding is for binding the form data to your business data, not for processing the incoming request). In flowscript, just call myform.showForm(...) and everything will go automatic from there. (If you look into the woody2.js source file you'll see what all this methods do). Feel free to ask further questions if there's still confusion about something. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
