cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <andre.juf...@oulu.fi>
Subject Form generation
Date Tue, 12 May 2009 13:31:19 GMT
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,

-- 
Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juffer@oulu.fi
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message