Adam,
processToDOM() was just what I was looking for - thanks!
Robin
On 10 Mar 2005, at 04:31, Adam Walsh wrote:
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. http://issues.apache.org/bugzilla/show_bug.cgi?id=33237
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.
HTH, Adam
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
