cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DAVIGNON Andre - CETE NP/DIODé/PANDOC" <Andre.Davig...@developpement-durable.gouv.fr>
Subject Re: Form generation
Date Tue, 12 May 2009 13:41:36 GMT
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.fr@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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message