cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Form generation
Date Tue, 12 May 2009 13:50:52 GMT
Funny you should ask that; i had the same issue myself a while back:

The answer there is the approach I adopted.

>>> On 2009/05/12 at 03:31, in message <>, Andre Juffer
<> wrote:

is the following allowed (in flow):

var data = ......;
var form = new Form("cocoon://make-form.jx", { "data" : data } );

The idea is to automatically generate a form definition from given data 
with jx:forEach. The data object doesn't seem to be passed on.

The make-form.jx actually does exactly what it is supposed to do. I 
tested this with

var data = .....;
cocoon.sendPage("make-form.jx", { "data" : data } );

and this gives me the right form definition.


new Form("cocoon://make-form.jx", { "data" : data } );

is not possible, what would be the alternative?

This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice,
and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.

View raw message