New To Orbeon Forms and Need Mysql Connection With Orbeon CE - orbeon

I have Few Doubts about Orbeon CE
If i build the form in form builder how this form can be used in my other context of webapps(I am Using Tomcat 6).
for ex: categoryfrom i build in orbeon context. I want to use this form in My own Context example foo.
How can i proceed with database connection in Orbeon CE to save the data that are entered in the form i build in orbeon. If i click on database connection it is saying like "This Feature is supported in PE version only".
3.How to Establish the Database(Mysql) connection with the form build in Orbeon CE. I have gone through your site but Its not in detail with Orbeon CE.
Orbeon CE says that Mysql is supported. In What way?

About the location of deployed forms: forms you create with Form Builder are also ran by Orbeon Forms. After you hit the Publish button in Form Builder, the form becomes available on a path that depends on the app and form name you chose when creating the form. For instance, if you have Orbeon Forms deployed on http://www.example.com/orbeon, and your app is called patients and the form is called registration, the URL to fill out a new form will be:
http://www.example.com/orbeon/fr/patients/regisration/new
To setup Orbeon Forms with MySQL, see Oracle and MySQL Persistence Layers. You don't need to use Services and Actions for this. The latter is not for form data persistence, but to make queries to the database, say to populate a drop-down, or pre-populate a field live based on a value entered in another field.

Related

how to convert an orbeon form created by form builder to directly run in form runner?

I have created a form in orbeon form builder, and now I want to pull the xforms code of it and run it directly form orbeon form runner? Is that possible? When I directly tried to copy and paste the source code of the form created by form builder, and put it in form runner it gives only a skeleton of tables etc.. Any suggestions?
In order to run a form created with Form Builder, use the Publish button. That will make it available to Form Runner by adding section templates and writing it to the database. This is the only way that will work properly.

Publishing of orbeon forms

Is it possible to do a re-publish of orbeon forms automatically? (ie Forms that have been created with Form Builder and which have been saved and deployed/published before).
Actually we are upgrading from Orbeon 3.9 to Orbeon 4.6, and currently we have lots of orbeon forms in our 3.9 environment. since its very difficult to publish the forms one by one after upgrade to 4.6, it will be good if i can find an easy way to republish all the existing forms.
I found something here at https://github.com/orbeon/orbeon-forms/wiki/Form-Runner-~-Home-Page
When I tried this, I didn't get any error but the forms were not actually published. and I got error when I opened a new instance of any existing forms.
Appreciate if any one can help me on this.
Thanks
Did you check the orbeon log for errors? If orbeon is running in production mode there may be an error that is not displayed to the user.
I haven't gone through an upgrade myself, but it's possible that you need to upgrade your form definitions. Orbeon 4.6 includes a feature to do this in bulk on the Form Runner Home Page. See the 4.6 blog post.

Access previous versions of form definitions with Orbeon

It appears that Orbeon does not support form versioning. When a change is made to a form definition, the form builder will only show the most recent version of the form. We are using MySql to store our data and I have noticed that the form definition is not overwritten in the database. A new line is added with a newer time stamp.
One requirement we have is that old revisions of a form must be trackable. At the very least we need to be able to view old versions of a form. How can this be done? The only way I can think of doing this is creating an instance of a form named with the revision everytime the form definition is updated. Has anyone found a better way to handle versioning in Orbeon?
At this time, and this includes the upcoming Orbeon Forms 4.0, there is no proper form versioning feature in Orbeon Forms (but we have some ideas as to how to implement this).
If what you want is that form data entered with a given version of a form definition is always loaded with that same version of the form definition, then unfortunately that feature isn't there.
Now, as you have noticed when using MySQL or Oracle, form data and form definitions are never actually deleted from the database. But this is more of an auditing feature rather than a versioning feature. With this, if you just want to find or restore an older version of a form, you can do this with a SQL query.

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.
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.

JSF Integration with other JSF application

Currently we have 3 .war files built using JSF1.x I am going to create one more .war file using JSF 2.x There are some requirements to integrate with other .war files. All these war files are deployed separately meaning not in a .ear file.
Some of the integration scenarios are:
Existing .war1 will call the new application by clicking a link. The new application should prepopulate (Edit mode) its page and after submitting and processing the business logic it should show .war1 page
Existing .war2 will call the new application by clicking a link. The new application should just open a page (New mode). After submitting and processing the business logic it should take back to .war2 page
New application will call .war3 page by clicking a button. It will also send some data and after submitting from .war3 page, control should come back to the new application page. In this scenario there are more possiblities to exchange large amount of data.
Basically I am looking for the best way to integrate and pass bulk data between JSF 1.x and JSF 2.X application
If cookies can be used to pass the data that is the easiest approach. Otherwise, you can have a server side cache such as EHCache and send a cacheId with the inter-app requests to point to where the data is cached.

Resources