I'm not able to use the Delegation processor to call a JavaBean.
This is my xpl file: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:delegation="http://orbeon.org/oxf/xml/delegation" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <p:param name="endP" type="input"/> <p:param name="startC" type="input"/> <p:param name="endC" type="input"/> <p:param name="startF" type="input"/> <p:param name="contestName" type="output"/> <p:processor name="oxf:delegation"> <p:input name="interface"> <config> <service id="ccBean" type="javabean" class="beans.myBean"/> </config> </p:input> <p:input name="call"> <result> <delegation:execute service="ccBean" operation="getContestName"> <endP xsi:type="xs:string">#endP</endP> <startC xsi:type="xs:string">#startC</startC > <endC xsi:type="xs:string">#endC</endC> <startF xsi:type="xs:string">#startF</startF> </delegation:execute> </result> </p:input> <p:output name="contestName" ref="contestName"/> </p:processor> </p:config> I want lo call this processor in a xf:setvalue in my xform: <xf:setvalue ref="instance('prova_instance')//prova" value="xxforms:call-xpl ('oxf:/bean.xpl', ('endP', 'startC','endC','startF'), (instance('prova_instance')//a, instance('prova_instance')//b,instance('prova_instance')//c,instance('prova_instance')//d),'contestName')"></xf:setvalue> but I have some problems. It doesn't find the file out of orbeon war so I put the xpl file into /apps....but It doesn't find my class.... ... and if I write the absolute path to my class I have other mistakes... In any test, it doesn't call my function... Can anybody help me? Any example???? Thanks -- 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 |
Agnese,
Are you using separate deployment? How does your setup look like? -Erik On Wed, Oct 21, 2009 at 3:33 AM, <[hidden email]> wrote: > I'm not able to use the Delegation processor to call a JavaBean. > This is my xpl file: > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format" > xmlns:svg="http://www.w3.org/2000/svg" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:oxf="http://www.orbeon.com/oxf/processors" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:atom="http://www.w3.org/2005/Atom" > xmlns:delegation="http://orbeon.org/oxf/xml/delegation" > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <p:param name="endP" type="input"/> > <p:param name="startC" type="input"/> > <p:param name="endC" type="input"/> > <p:param name="startF" type="input"/> > <p:param name="contestName" type="output"/> > <p:processor name="oxf:delegation"> > <p:input name="interface"> > <config> > <service id="ccBean" type="javabean" > class="beans.myBean"/> > </config> > </p:input> > <p:input name="call"> > <result> > <delegation:execute service="ccBean" > operation="getContestName"> > <endP xsi:type="xs:string">#endP</endP> > <startC > xsi:type="xs:string">#startC</startC > > <endC xsi:type="xs:string">#endC</endC> > <startF > xsi:type="xs:string">#startF</startF> > </delegation:execute> > </result> > </p:input> > <p:output name="contestName" ref="contestName"/> > </p:processor> > </p:config> > > I want lo call this processor in a xf:setvalue in my xform: > > <xf:setvalue ref="instance('prova_instance')//prova" value="xxforms:call-xpl > ('oxf:/bean.xpl', ('endP', 'startC','endC','startF'), > (instance('prova_instance')//a, > instance('prova_instance')//b,instance('prova_instance')//c,instance('prova_instance')//d),'contestName')"></xf:setvalue> > > but I have some problems. > It doesn't find the file out of orbeon war so I put the xpl file into > /apps....but It doesn't find my class.... ... and if I write the absolute path > to my class I have other mistakes... > In any test, it doesn't call my function... > > Can anybody help me? Any example???? > Thanks > > > -- > 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 > > -- 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 |
Free forum by Nabble | Edit this page |