|
This works:
var pu = cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);var model = pu.processToDOM("def.jxt",{"data":data}); as in the patch referenced previously in this thread. From: Simon Stanlake [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 11:54 AM To: [email protected] Subject: RE: CForms: creating dynamic widgets I couldn't find the loadDOM() function - is there
another .js file I need to import for this to work? From: Robin Wyles [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 10:07 AM To: [email protected] Subject: Re: CForms: creating dynamic widgets From flow you can do...
cocoon.load("resource://org/apache/cocoon/forms/flow/_javascript_/Form.js");
...
var questions = someMethodToGetQuestions();
var model = loadDOM("forms/application/definition.jxt ",
{"questions": questions});
var form = new Form(model.getDocumentElement());
form.showForm("forms/application/template.jxt");
Hope this helps...
Robin
On 10 Feb 2006, at 13:29, Andrew Le Quesne wrote:
|
- RE: CForms: creating dynamic widgets Simon Stanlake
- Re: CForms: creating dynamic widgets Robin Wyles
