Hi,
Yes, it works. You can define forms dynamically. And even pass
"cocoon://make-form.jx" as a sitemap parameter.
André
Le 12/05/2009 15:31, > Andre Juffer (par Internet, dépôt
users-return-97598-andre.davignon=developpement-durable.gouv...@cocoon.apache.org)
a écrit :
Hi,
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.
If
new Form("cocoon://make-form.jx", { "data" : data } );
is not possible, what would be the alternative?
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]