DAVIGNON Andre - CETE NP/DIODé/PANDOC wrote:
Hi,

Yes, it works. You can define forms dynamically. And even pass "cocoon://make-form.jx" as a sitemap parameter.

OK. The point is however that in make-form.jx, the data object is actually null. In other words, it doesn't seem to be passed on. I am 100% sure that it is -not- null in the flow scrip. I make a test in make-form.jx to see if it is null.

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]



--
Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email: [email protected]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat                   | WWW: www.strubiocat.oulu.fi
NordProt                     | WWW: www.nordprot.org
Triacle Biocomputing         | WWW: www.triacle-bc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to