<snip/>


Yeah, forget about that clumsy "handleForm" and use a plain old function. IMO, the name of the form definition and binding belong to the controller (i.e. the flowscript) and not to the sitemap.

somehow i thought "handleForm" was the standard and most advanced way of creating a form. I'm still looking through the docs to see where i found this.



<map:match pattern="*.action"> <map:call function="myFunction"> <map:parameter name="template" value="{1}"/> </map:call> </map:match>


function myFunction() { var form = new Form("forms/fooFormModel.xml"); form.createBinding("forms/fooFormBinding.xml"); ... form.showForm(cocoon.parameters["template"]); ... }

makes perfect sense...


And be very careful with the fact that in <map:call function>, only the *order* of parameters is significant, and not their names. That's why it's safer to have functions with no arguments and use cocoon.parameters.


copy that.


Thanks! Jorg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to