cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: CForms: Dynamic XML-binding
Date Mon, 04 Dec 2006 17:40:45 GMT

On Dec 4, 2006, at 9:16 AM, Simone Gianni wrote:

> Hi Zongo,
> you need a processPipelineTo call. With that you can invoke, from the
> flow, a cocoon pipeline and fetch the result as an array of byte, which
> can be converted to a string.

Better yet, do

	importClass 
(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);
	.
	.
	.
	var doc = PipelineUtil.processToDOM ('/some/pipeline');      // NB: 
omit the 'cocoon:/' :-)

cheers,
—ml—

> ZongoZongo wrote:
>> I have a CForm and want to bind data to the form, that is generated 
>> by a
>> cocoon Pipeline.
>>
>> My first idea was to
>>
>> var xmlDocument = loadDocument(cocoon:/mypipeline)
>> form.load(xmlDocument)
>>
>> But of cause it doesnt work, because loadDocument needs a String as
>> parameter.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message