Hi all,
Firstly, many thanks to the Orbeon's developers. We really enjoy using the application. We're trying to integrate Orbeon Forms with an existing Java webapp using the filter approach (separate deployment) describe here: http://www.orbeon.com/ops/doc/reference-xforms-java. So far, we already have the filter configured correctly to allow Orbeon Forms to kick in when the request matches pattern /xforms-jsp/. For example, we have view.xhtml in /xforms-jsp/ folder and requests to webapp/xforms-jsp/view.xhtml result in the XForm being displayed perfectly. However, we couldn't figure out how to use XPL or page flow in this situation. We tried to put page-flow.xml in /xforms-jsp/ folder but it doesn't seem to work. Does anyone has experience using page flow and XPL in separate deployment? Another question I want to ask is how to handle form submission exception in separate deployment? If I submit the XML instance to a servlet which saves the document to a XML database but the database server is down, how do I notify the user that the document couldn't be submitted? 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
> Firstly, many thanks to the Orbeon's developers. We really enjoy
> using the application. Thanks :-) > We're trying to integrate Orbeon Forms with an existing Java webapp > using the filter approach (separate deployment) describe here: > http://www.orbeon.com/ops/doc/reference-xforms-java. So far, we > already have the filter configured correctly to allow Orbeon Forms > to kick in when the request matches pattern /xforms-jsp/. For > example, we have view.xhtml in /xforms-jsp/ folder and requests to > webapp/xforms-jsp/view.xhtml result in the XForm being displayed > perfectly. However, we couldn't figure out how to use XPL or page > flow in this situation. We tried to put page-flow.xml in > /xforms-jsp/ folder but it doesn't seem to work. Does anyone has > experience using page flow and XPL in separate deployment? If you access your app through /myapp/xforms-jsp/hello.jsp, you can still access Orbeon Forms through its own context, e.g.: /ops/hello/world But currently your application deployedd under /myapp cannot directly use page flows. However, your application can, in recent nightly builds, send XPL files to Orbeon Forms as well: instead of having your JSP or other Java framework output XHTML+XForms, just have it output XPL. > Another question I want to ask is how to handle form submission > exception in separate deployment? If I submit the XML instance to a > servlet which saves the document to a XML database but the database > server is down, how do I notify the user that the document couldn't > be submitted? With XForms, you can catch xforms-submit-error on the xforms:submission element, and take any action from there. The Bookcast tutorial shows how to do this: http://www.orbeon.com/ops/doc/intro-tutorial -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 |
Hi Erik, Any information on how to send XPL to orbeon from my Java webapp? I can't seem to find it in the documentation. How will that help in my situation? I need to redirect user to a page in my webapp after XForms is successfully submitted. Thanks.
|
Administrator
|
climbingrose wrote:
> > Hi Erik, > > Any information on how to send XPL to orbeon from my Java webapp? I > can't seem to find it in the documentation. Well really all there is to it is: 1. Deploy Orbeon Forms in separate deployment mode: http://www.orbeon.com/ops/doc/reference-xforms-java 2. Have your JSP produce an XPL file instead of an XHTML file. The XPL should be intercepted by the filter and passed to Orbeon Forms for execution. > How will that help in my situation? You seemed to say you wanted to call XPL in separate deployment mode. This is one way of calling XPL, I am not sure it helps you. The other way is to configure a page flow in Orbeon Forms and implement pages and services there thta use XPL. > I need to redirect user to a page in my webapp after XForms is > successfully submitted. You can do this with xforms:load or xforms:submit[@replace='all'] -Erik > > Thanks. > > > Erik Bruchez wrote: >> > Firstly, many thanks to the Orbeon's developers. We really enjoy >> > using the application. >> >> Thanks :-) >> >> > We're trying to integrate Orbeon Forms with an existing Java webapp >> > using the filter approach (separate deployment) describe here: >> > http://www.orbeon.com/ops/doc/reference-xforms-java. So far, we >> > already have the filter configured correctly to allow Orbeon Forms >> > to kick in when the request matches pattern /xforms-jsp/. For >> > example, we have view.xhtml in /xforms-jsp/ folder and requests to >> > webapp/xforms-jsp/view.xhtml result in the XForm being displayed >> > perfectly. However, we couldn't figure out how to use XPL or page >> > flow in this situation. We tried to put page-flow.xml in >> > /xforms-jsp/ folder but it doesn't seem to work. Does anyone has >> > experience using page flow and XPL in separate deployment? >> >> If you access your app through /myapp/xforms-jsp/hello.jsp, you can >> still access Orbeon Forms through its own context, e.g.: >> >> /ops/hello/world >> >> But currently your application deployedd under /myapp cannot directly >> use page flows. >> >> However, your application can, in recent nightly builds, send XPL >> files to Orbeon Forms as well: instead of having your JSP or other >> Java framework output XHTML+XForms, just have it output XPL. >> >> > Another question I want to ask is how to handle form submission >> > exception in separate deployment? If I submit the XML instance to a >> > servlet which saves the document to a XML database but the database >> > server is down, how do I notify the user that the document couldn't >> > be submitted? >> >> With XForms, you can catch xforms-submit-error on the >> xforms:submission element, and take any action from there. The >> Bookcast tutorial shows how to do this: >> >> http://www.orbeon.com/ops/doc/intro-tutorial >> >> -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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Erik Bruchez wrote:
> climbingrose wrote: > > > > Hi Erik, > > > > Any information on how to send XPL to orbeon from my Java webapp? I > > can't seem to find it in the documentation. > > Well really all there is to it is: > > 1. Deploy Orbeon Forms in separate deployment mode: > > http://www.orbeon.com/ops/doc/reference-xforms-java > > 2. Have your JSP produce an XPL file instead of an XHTML file. The XPL > should be intercepted by the filter and passed to Orbeon Forms for > execution. > > > How will that help in my situation? > > You seemed to say you wanted to call XPL in separate deployment > mode. This is one way of calling XPL, I am not sure it helps you. The > other way is to configure a page flow in Orbeon Forms and implement > pages and services there thta use XPL. > > > I need to redirect user to a page in my webapp after XForms is > > successfully submitted. > > You can do this with xforms:load or xforms:submit[@replace='all'] can produce a new page but that doesn't seem to be what you want here. -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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |