cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Walsh <>
Subject Re: Generating from definition from JXTemplate
Date Thu, 10 Mar 2005 03:31:44 GMT
Hi Robin,

I've submitted a patch so that you can do just that, but I don't know if 
it will see it's way into a release any time soon.

You could also try Sylvain's suggestion in that bugzilla entry "Another 
way to do the same is to use PipelineUtils.processToDOM() and then use 
the DOM to build the form."

An alternative that's not quite as clean is to stick the bean in the 
session, then pull it back out of the session from the JXTemplates.


Robin Wyles wrote:

> Hi,
> Can anyone tell me if it is possible to dynamically generate a forms 
> definition and binding by do something like this using flowscript:
> var form = new Form("cocoon:/forms/form-model.jx", {"bean": bean});
> var binding = createBinding("cocoon:/forms/form-binding.jx", {"bean": 
> bean});
> If not, is there another way I could generate the definition and 
> binding using JXTemplate, then passing the result to the above functions.
> Thanks,
> Robin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message