orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
511 stars 220 forks source link

Liferay: Form Runner settings to use "offline" forms engine #6403

Open ebruchez opened 3 days ago

ebruchez commented 3 days ago

Idea that came during a feverish night ;)

The Liferay proxy portlet has a settings page. Currently, it manages by hand an HTML form. This is a little disappointing for a part of a product that manages forms!

So the idea is, instead, to write this using our form processor. But this cannot use the regular JVM environment form processor, as the proxy portlet is just that, a proxy, and doesn't actually include Form Runner, which is "remote". And we need to be able to configure, via these settings, even the location of the remote Form Runner.

So this would instead use the JavaScript environment (AKA "offline") runtime. It would be a way to exercise it, also.

For this to work:

In addition, it would be good to obtain the baseline and compiled form to include in the proxy portlet JAR file automatically at compilation time. As a first step, we could checkin those resources.

ebruchez commented 3 days ago

As an aside, we should also consider whether and how we could, over time, move parts of the Form Builder UI entirely to the client, to improve responsiveness. One difficulty is that some of the settings use dynamic subforms, which are not supported in the JavaScript environment. Maybe this is not so great an issue as those could be compiled on the server, and each individual XBL control setting should need to be compiled only once.