HI.
I had similar requirement and the solution for it was posted on the dev-list.
Here the solution:
Following works in the sitemap.
<map:select type="parameter">
<map:parameter name="parameter-selector-test" value="{flow-attribute:flowRequest/ver}"/>
<map:when test="POP" >
</map:when>
<map:otherwise>
</map:otherwise>
</map:select>
In the flowscript:
I define a JS object called flowRequest with data member ver and invoke the sendPageAndWait command as follows:
cocoon.sendPageAndWait("XMLcollector", { "flowRequest":flowRequest});
Setting ver to "POP" triggers the test="POP" part of the select logic.
Cheers -Yatin
wrote:
Hi all,
I'm trying get bizdata parameters sended with function
cocoon.sendPage("registration-success-pipeline", bizdata);
from sitemap. Because I need to pass this data to our custom EJB generator.
I findout that bizdata is stored in request attribute named "cocoon.flow.context"
my question is: How can I access this request attributes ?
I tryed JXPathMetaModule with RequestAttributeModule but I don't know how to configure it properly - there is no sample my current cocoon.xconf for that is: <component-instance class="org.apache.cocoon.components.modules.input.RequestAttributeModule" logger="core.modules.input" name="request-test"> <parameter>mytest</parameter> </component-instance>
where mytest is attribute name in request-attribute space
<component-instance class="org.apache.cocoon.components.modules.input.JXPathMetaModule" logger="core.modules.input" name="rtest"> <input-module name="request-test"/> </component-instance>
Do you know what I'm doing wrong ?
Thank you
Roman
---------------------------------------------------------------------
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]
