Data submission in Java application with separately deployed Orbeon XForms engine

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

Data submission in Java application with separately deployed Orbeon XForms engine

Chriss-2
Hi,

I created small Java Application separately deployed with Orbeon XForms engine and I wrote a simple XForms that is provided by JSP page. Everything works fine, when I run JSP in the browser Orbeon XForms filter creates html+JS.

Then I want to submit data and I wonder if it's possible to fetch the whole data model in xml format without adding submission tags, just using Java code, calling services or something else (DOM Interface for Access to Instance Data is not implemented - http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-compliance-matrix).

I can get single data instance by pasting submission tags after the instances in the model and create submit button at the end, but it changes XForms structure and gives me data from one instance only. Is it possible to get the data in some other way? To my mind the best solution would be to create separate buttons like in the Form Runner, but I don't have any idea how to create it.      

Thanks in advance for any help.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Data submission in Java application with separately deployed Orbeon XForms engine

Erik Bruchez
Administrator
You cannot "pull" the XML data from Java at this point. The XForms must "push" it, typically via xf:submission (there are other ways, like using the xxf:set-session-attribute() function, which stores data into the session, but it's not very different).

The "DOM Interface for Access to Instance Data" probably wouldn't apply directly to our implementation anyway as the data is kept server-side, and it is a big security risk.

-Erik