Problem calling a JavaBean

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

Problem calling a JavaBean

javi cerro
Hi everybody,

I have the following code in a xform:

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xforms=" http://www.w3.org/2002/xforms">
    <head>
        <title>XForms Hello</title>       
    </head>
    <body>
        <p>
            <p:processor name="oxf:delegation">
                <p:input name="interface">
                    <config>
                        <service id="my-service" type="javabean" class="com.prueba.Bean"/>
                    </config>
                </p:input>
                <p:input name="call">
                    <result>
                        <delegation:execute service="my-service" operation="getString">
                        </delegation:execute>
                    </result>
                </p:input>
                <p:output name="data" id="result"/>
            </p:processor>
        </p>
    </body>
</html>

But when I run the page, orbeons said to me that p:processot could not be found. Can anybody help me?

--
Regards
Javier Cerro

--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem calling a JavaBean

Erik Bruchez
Administrator
Javier,

It is not possible in Orbeon Forms to include XPL in XHTML. You will
have to create a separate XPL file, and call it from an XForms submission.

-Erik

javi cerro wrote:

> Hi everybody,
>
> I have the following code in a xform:
>
> <html xmlns="http://www.w3.org/1999/xhtml"
>     xmlns:xforms=" http://www.w3.org/2002/xforms">
>     <head>
>         <title>XForms Hello</title>      
>     </head>
>     <body>
>         <p>
>             <p:processor name="oxf:delegation">
>                 <p:input name="interface">
>                     <config>
>                         <service id="my-service" type="javabean"
> class="com.prueba.Bean"/>
>                     </config>
>                 </p:input>
>                 <p:input name="call">
>                     <result>
>                         <delegation:execute service="my-service"
> operation="getString">
>                         </delegation:execute>
>                     </result>
>                 </p:input>
>                 <p:output name="data" id="result"/>
>             </p:processor>
>         </p>
>     </body>
> </html>
>
> But when I run the page, orbeons said to me that p:processot could not
> be found. Can anybody help me?
>
> --
> Regards
> Javier Cerro
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
OW2 mailing lists service home page: http://www.ow2.org/wws