Hello,
I am new to orbeon xforms. I am having 2 xpl files. one fetches the data from the database and another invokes the java processor. How to get both xpls loaded when my application is started. Is it possible to use xforms-ready. I am getting xml node from the javaprocessor and prints in the list-records-view.xhtml My page-flow.xml is Here how do include javaprocessor xpl such that the list-records-action.xpl, javapro-records-action.xpl invoke simultaneously because i want to get the records from database by list-records-action.xpl and xmlnodes from javapro-records-action.xpl into the list-records-view.xhtml <page id="SystemConfiguration-home" path-info="/" model="SystemConfiguration/list-records-action.xpl" view="SystemConfiguration/list-records-view.xhtml "> <setvalue ref="/parameters/configid" parameter="configid"/> </page> Any one please help me without fail. I am waiting for your reply. Thanks in advance. Bye -- 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 |
Administrator
|
Senthil,
> I am new to orbeon xforms. I am having 2 xpl files. one fetches > the data from the database and another invokes the java > processor. So far so good. > How to get both xpls loaded when my application is started. I assume you mean when a page is requested? > Is it possible to use xforms-ready. I am getting xml node from > the javaprocessor and prints in the list-records-view.xhtml > My page-flow.xml is > > Here how do include javaprocessor xpl such that the > list-records-action.xpl, javapro-records-action.xpl invoke > simultaneously because i want to get the records from database by > list-records-action.xpl and xmlnodes from javapro-records-action.xpl > into the list-records-view.xhtml I don't thing you want them called really simultaneously, right? As suggested already, one way consists in creating a model pipeline, say my-model.xpl. Then in that model pipeline, use the oxf:pipeline processor to call both pipelines, for example: <p:processor name="oxf:pipeline"> <p:input name="config" href="list-records-action.xpl"/> <p:output name="data" id="data1"/> </p:processor> <p:processor name="oxf:pipeline"> <p:input name="config" href="javapro-records-action.xpl"/> <p:output name="data" id="data2"/> </p:processor> Then you can aggregate the data, for example with the identity processor, and send the result to the output of the model pipeline: <p:processor name="oxf:identity"> <p:input name="data="aggregate('root', #data1, #data2)"/> <p:output name="data" ref="data"/> </p:processor> Another way is to do this from XForms, you can too. In that case, you don't use a model pipeline at all in your SystemConfiguration-home page. Instead, you can either: * Call submissions upon xforms-ready to call two services, each one running one of the two pipelines. * If the data retrieved does not depend on parameters, you can use xforms:instance/@src to load the data from the services as well. * Finally, you can use the xxforms:call-xpl() extension function to directly call your pipelines. You expose such "services" in your page flow, for example with: <page path="/my/service1" view="list-records-action.xpl"/> <page path="/my/service2" view="javapro-records-action.xpl"/> -Erik -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |