You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Johann Romefort <ro...@club-internet.fr> on 2003/09/02 15:21:35 UTC
Re: Flow - problem with processPipelineTo (precisions)
It seems that my problem with processPipelineTo has nothing to do with
the type
of object passed, but that the object never get passed to the target
pipeline.
I browsed the source code and if I follow the calls starting from
FOM_Cocoon,
the only place where the biz object is used is in the flow
AbstractInterpreter:
wrapper.setAttribute("bean-dict", biz);
From here I cannot figure how and where the biz object is used...
Any help welcome....
Johann
Johann Romefort wrote:
> Hi,
>
> I need to pass an object in a processPipelineTo directive (a string
> for instance) where the
> called pipeline use JXPath generator to retrieve the value of the object.
>
> cocoon.processPipelineTo("logdebug.jxpath",{msg : "blabla" },output);
> ....but I m getting the following exception:
> org.apache.commons.jxpath.JXPathException: No value for xpath: msg
>
> The same thing with a sendPage directive works well:
>
> cocoon.sendPage("logdebug.jxpath", {msg : "blabla"});
>
>
> My question is : Do I need to wrap my string into a Javascript object
> ( the doc refers to
> a "business data object"), or is this simply a bug?
>
>
> Thanks,
>
> Johann
>
>