uzrovsh
uzrovsh

Reputation: 1

Using Form-Builder-Generated-Form with Java Application

I tried the approach of using Form-Builder-Generated-Form within Java application suggested here < Running Orbeon-Form-Builder-Generated-Form with Java Application > : downloaded Orbeon nightly build, created a sample form using Form Builder and copy & pasted it into JSP page in my app. However, when I try to access this JSP, it redirects me to: /myapp/fr/unauthorized . Can you please tell me what I maybe doing wrong? Or what is the right way of making Orbeon process Form Builder generated content in Java app?

For my deployment I followed separate deployment and configuration specified in Orbeon documentation. Thanks in advance.

Upvotes: 0

Views: 946

Answers (1)

ebruchez
ebruchez

Reputation: 7857

You are not doing anything wrong, but Orbeon Forms doesn't support this type of form deployment.

The separate deployment mode runs the output of your JSP directly through the XForms engine.

Form Builder-generated forms OTOH expect pre-processing via the Form Runner runtime, in particular through the components.xsl XSLT transform. This is needed to support all the Form Runner features, including built-in persistence, error summary, internationalization, etc.

Currently the cleanest way to integrate such forms with your own app is to just run them side by side (Orbeon WAR + your own WAR) and navigate between each other via links and POSTs.

You could also use an iframe, although that is often a disliked solution.

You could also transform the form produced by Form Builder into plain XForms that doesn't assume Form Runner. It wouldn't be too hard to do but would be outside the scope of this StackOverflow question.

Upvotes: 1

Related Questions