multiple session parameters

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

multiple session parameters

johnecobo
Hi,
Is there an example floating around of accessing more
than one session parameter from a page ?

I'm particularly curious about the model.xpl.

I've got:
    <p:param type="output" name="data"/>
    <p:param type="output" name="data2"/>

    <p:processor name="oxf:scope-generator">
        <p:input name="config">
            <config>
                <key>country</key>
                <scope>session</scope>
            </config>
        </p:input>
        <p:output name="data" ref="data"
debug="MODELcountry"/>
    </p:processor>
   
    <p:processor name="oxf:scope-generator">
        <p:input name="config">
            <config>
                <key>submenu-style</key>
                <scope>session</scope>
            </config>
        </p:input>
        <p:output name="data" ref="data2"
debug="MODELmenu"/>
    </p:processor>

but I don't really know what I am doing and the data2
does not seem to get accessed.  should the two params
be in a single processor ?  If not, how does the page
make it run ?  The country param gets called fine with
xsl:value-of select="country/item"/>, but a similar
call does not work for submenu-style.

Thanks,

John C.


       
       
               
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: multiple session parameters

Alessandro  Vernet
Administrator
--- John Cobo <[hidden email]> wrote:
> Hi,
> Is there an example floating around of accessing more
> than one session parameter from a page ? [...]

Hi John,

How is this pipeline called? If it is used from the PFC, only the "data"
output will be read, which might explain the issue. If this is this case,
you might want to aggregate the documents returned by the two Scope
generators into a single document (you can use the identity processor to
that effect) and return the aggregated document in the "data" output of
the pipeline.

Alex

--
Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet