Johannes Becker wrote:
Hi,

I want to call a JXTemplate from Flow. The xml(-stream) that is generated from the Template, I want to pass to a method inside Flow.
Is there a way to do this?

Something like: var document = getMyStream("views/myTemplate", {someData: someData}); myJavaFunction(document);

Is there already a function in Flow (like my imaginary function 'getMyStream') which can get a xml-stream?
var pipelineUtil =
cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);
var document = pipelineUtil.processToDOM("myPipe", {"myData": myData});

--
Leszek Gawron                                      [EMAIL PROTECTED]
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to