Orbeon - saxon parse() stop working in new version - saxon

I have problem with function saxon:parse() in my form. I used it in Orbeon 2020.1.2 CE and it worked well. After update to version 2021.1.2 PE (I have prebuild) it stop working. I try same thing on orbeon.com too with same bad result (https://demo.orbeon.com/demo/fr/orbeon/builder/edit/b57d32a03929e4be3b6cc391497dc14fb48bd878)
Strange is when i try same thing saxon:parse(//xml) in xforms-inspector it work well (I change $ from form to // in inspector). Is some change in using saxon in new version or I hit some bug? Thank you

As of Orbeon Forms 2021.1, you can't use saxon:parse() anymore, and should use xf:parse(), which is a new XForms 2.0 function (see differences between XForms 1.1 and 2.0).
In new code, it is always better to use xf:parse(). However, for backward compatibility, it would be good for Orbeon Forms to also support saxon:parse(), and this is tracked as issue #5271.

Related

Orbeon forms 2016.2 to 2016.2.1

I am using orbeon forms 2016.2 professional edition right now and I plan to switch to 2016.2.1 because the release notes highly recommend for the upgrade. When I perform the switch, can I use the same orbeon database that created with version 2016.2 without doing any patch works?
The data and table format hasn't changed between 2016.2 and 2016.2.1. (And in general, it shouldn't change in point releases, unless the change is really necessary to fix a bug.) So:
If you are using a relational database, and have already upgraded it to the 2016.2 format, or created it with the 2016.2 DDL, you're good to go, and can just switch to 2016.2.1.
If you're using the embedded eXist, you'll want to "copy" the WEB-INF/exist-data to the new version. For more on this, see point 2 in the When using Form Builder and Form Runner section of the documentation.

Orbeon 3.9.1PE upgrade to 4.1CE

Tomcat 7
Orbeon 4.1CE
After using 4.1CE, it cannot read the handwritten form in "orbeon/conf/resources/forms/"
Is there any new file need to define in 4.1 version?
Now, I know that the properties-local.xml affects this problem.
Is there any sample of properties-local.xml for 4.1CE?
First, if you're upgrading, I'd recommend you upgrade to the latest version (4.9 at the time of this writing), since 4.1 is already quite old.
Now, regarding your specific question, I can't remember Orbeon Forms ever using a orbeon/conf/resources/forms folder. Maybe orbeon/conf/resources was setup as a resource folder in your web.xml? If not, this must have been a directory your app was explicitly reading from.
About the properties-local.xml, you can define your own values for properties to configure the way Orbeon Forms works, and for more on this I'd recommend you go through the documentation about properties.

Orbeon 4.7 $.browser is undefined

I have upgraded my application from orbeon 4.4 to orbeon 4.7. On loading forms, in the browser console I'm getting $.browser is undefined.
On debugging I found that orbeon 4.7 is using jQuery v1.11.0 and $.browser is removed from jQuery v1.9.
Any idea why it is still using removed/deprecated $.browser??
How to solve this??
Per the jQuery documentation, "This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.". So you could:
Add the JavaScript for jquery-migrate to your project.
Change your code to check whether the feature you want to use is available, rather than rely on knowing in which browser it is available. (Most front-end developers would recommend you try to use this first.)

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.

Help with PrimeFaces

I am working slowly through the PrimeFaces showcase, I am using NetBeans 7.0, JDK1.6, PrimeFaces 2.2.1, GlassFish 3.1, JSF 2.0, Win XP Prof
Some of the examples work fine, others don't work and then I get errors that a component doesnt exist in the library or the component doesn't have a specific attribute. I have not done any configuration and the purchased very lacking PrimeFaces Manual seemed to suggest I didn't need to
I keep reading about snapshots and am wondering, should I be using a snapshot:
1) Do I need to use this snapshot to get everything to work, if so HOW do I use it?
2) Is there any more documentation / tuts / examples/ books ... of using PrimeFaces components with the above requirements that I have, that have been tested and work.
I have tried other forums but get no response, I would like to eventually develop some apps using PrimeFaces, but can't get the answers or help I need.
On the Primefaces web page there is a "Showcase 2.2.1" and a "Labs Showcase 3.0". Maybe you tried some features of the Labs Showcase with your 2.2.1 installation?
If not, please give an example of a not working component.

Resources