delegation:execute

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

delegation:execute

assafn
Hi,

I would like to pass a parameter as a dynamic value to a JavaBean. Can someone help me on how to do that? Here is my code:

        <p:processor name="oxf:delegation">
                <p:input name="interface">
                        <config>
                                <service id="my_service" type="javabean" class="MyClass"/>
                        </config>
                </p:input>
                <p:input name="call">
                        <result>
                                <delegation:execute service="my_service" operation="getValue">
                                        <param1 xs:type="xs:string">THIS SHOULD BE DYNAMYC</param1>
                                </delegation:execute>
                        </result>
                </p:input>
                <p:output name="data" id="stuff" debug="encrypted"/>
        </p:processor>




--
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: delegation:execute

assafn
the only way i managed to solve this was to generate
the call in xsl processor and refer to it:

<p:input name="call" href="#xxx"/>

Assaf


--- [hidden email] wrote:

> Hi,
>
> I would like to pass a parameter as a dynamic value
> to a JavaBean. Can someone help me on how to do
> that? Here is my code:
>
> <p:processor name="oxf:delegation">
> <p:input name="interface">
> <config>
> <service id="my_service" type="javabean"
> class="MyClass"/>
> </config>
> </p:input>
> <p:input name="call">
> <result>
> <delegation:execute service="my_service"
> operation="getValue">
> <param1 xs:type="xs:string">THIS SHOULD BE
> DYNAMYC</param1>
> </delegation:execute>
> </result>
> </p:input>
> <p:output name="data" id="stuff"
> debug="encrypted"/>
> </p:processor>
>
>
> >
> --
> 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
>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.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: delegation:execute

Alessandro  Vernet
Administrator
Hi Assaf,

Yes, if you are using the Delegation processor and have dynamic value,
you need to use XSLT to generate the configuration. Alternatively, you
can call Java code directly from XSLT, without the delegation
processor. This feature is not standard XSLT, but is offered by Saxon,
the default XSLT engine in PresentationServer. See the 3 links below
for more information:

http://www.saxonica.com/documentation/extensibility/functions/staticmethods.html
http://www.saxonica.com/documentation/extensibility/functions/constructors.html
http://www.saxonica.com/documentation/extensibility/functions/instance-methods.html

Alex

On 7/25/06, Assaf <[hidden email]> wrote:

> the only way i managed to solve this was to generate
> the call in xsl processor and refer to it:
>
> <p:input name="call" href="#xxx"/>
>
> Assaf
>
>
> --- [hidden email] wrote:
>
> > Hi,
> >
> > I would like to pass a parameter as a dynamic value
> > to a JavaBean. Can someone help me on how to do
> > that? Here is my code:
> >
> >       <p:processor name="oxf:delegation">
> >               <p:input name="interface">
> >                       <config>
> >                               <service id="my_service" type="javabean"
> > class="MyClass"/>
> >                       </config>
> >               </p:input>
> >               <p:input name="call">
> >                       <result>
> >                               <delegation:execute service="my_service"
> > operation="getValue">
> >                                       <param1 xs:type="xs:string">THIS SHOULD BE
> > DYNAMYC</param1>
> >                               </delegation:execute>
> >                       </result>
> >               </p:input>
> >               <p:output name="data" id="stuff"
> > debug="encrypted"/>
> >       </p:processor>
> >
> >
> > >
> > --
> > 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
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.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
>
>
>

--
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