Hi,
I can't managed to display any /request data in my XForm. Can anyone help? In my XForm I have: <xforms:model id="model_Document" > <xforms:instance> <xi:include href="input:data" /> </xforms:instance> ... <xforms:input ref="/request/container-type" model="model_Document"> <xforms:label>request stuff</xforms:label> </xforms:input> My Pageflow is: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xu="http://www.xmldb.org/xupdate" xmlns:oxf="http://www.orbeon.com/oxf/processors"> <p:processor name="oxf:request"> <p:input name="config"> <config> <include>/request</include> </config> </p:input> <p:output name="data" id="request"/> </p:processor> <p:processor name="oxf:page-flow"> <p:input name="controller" href="page-flow.xml"/> </p:processor> </p:config> and page-flow.xml is <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:xu="http://www.xmldb.org/xupdate"> <page path-info="*" view="myxform.xhtml" /> <epilogue url="oxf:/config/epilogue.xpl"/> </config> I just get a blank screen when I post to the page. No error. Can someone tell me what I'm missing? I persume the instance data is being populated with the /request information sent by the server. -- Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. -- 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 |
I might be wrong here, but it doesn't look like anything is happening
with your oxf:request processor. You define an outputut, but nothing ever consumes it. You might want to instead try putting this in your page flow. <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:xu="http://www.xmldb.org/xupdate"> <page path-info="*" model="getRequest.xpl" view="myxform.xhtml" /> <epilogue url="oxf:/config/epilogue.xpl"/> </config> where getRequest.xpl looks something like: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xu="http://www.xmldb.org/xupdate" xmlns:oxf="http://www.orbeon.com/oxf/processors"> <p:param name="data" type="output" /> <p:processor name="oxf:request"> <p:input name="config"> <config> <include>/request</include> </config> </p:input> <p:output name="data" ref="data" /> </p:processor> </p:config> This will generate the request information, and pass it along as the 'data' instance to the view document/pipeline. (In this case, myform.xhtml) All of this is untested, but it should be right. Hope it helps you out. Daniel E. Renfer http://kronkltd.net/ On 11/17/06, Colin Seaman <[hidden email]> wrote: > Hi, > > I can't managed to display any /request data in my XForm. Can anyone help? > > In my XForm I have: > > <xforms:model id="model_Document" > > <xforms:instance> > <xi:include href="input:data" /> > </xforms:instance> > ... > <xforms:input ref="/request/container-type" model="model_Document"> > <xforms:label>request stuff</xforms:label> > </xforms:input> > > My Pageflow is: > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:xu="http://www.xmldb.org/xupdate" > xmlns:oxf="http://www.orbeon.com/oxf/processors"> > <p:processor name="oxf:request"> > <p:input name="config"> > <config> > <include>/request</include> > </config> > </p:input> > <p:output name="data" id="request"/> > </p:processor> > <p:processor name="oxf:page-flow"> > <p:input name="controller" href="page-flow.xml"/> > </p:processor> > > </p:config> > > and page-flow.xml is > <config xmlns="http://www.orbeon.com/oxf/controller" > xmlns:xu="http://www.xmldb.org/xupdate"> > > <page path-info="*" view="myxform.xhtml" /> > > <epilogue url="oxf:/config/epilogue.xpl"/> > > </config> > > I just get a blank screen when I post to the page. No error. > > Can someone tell me what I'm missing? I persume the instance data is > being populated with the /request information sent by the server. > > -- > Colin Seaman > Senior Developer > > Tradocs Ltd, > Tower Point, > 44 North Road, > Brighton, > BN1 1YR > > email: [hidden email] > skype: colin,seaman > telephone: 0870-1417031 > website: http://www.tradocs.net > > This email and any files transmitted with it are confidential > and intended solely for the use of the individual or entity to > whom they are addressed. If you have received this email in > error please contact Tradocs. Please note that any views or > opinions presented in this email are solely those of the author > and do not necessarily represent those of the company. Finally, > the recipient should check this email and any attachments for > the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. > This content of this email is without prejudice. > > > > > > -- > 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 > > > -- 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 |
Free forum by Nabble | Edit this page |