Form builder forms loaded from disk

2 views
Skip to first unread message

Jarosław Kowalewski

unread,
Feb 9, 2021, 5:28:04 PM2/9/21
to orb...@googlegroups.com
Hi,
Here I found info that 

but it is possible to run it from disk when form definition is places in the directory
\WEB-INF\resources\forms\appname\formname\form\form.xhtml and forms work. 

Is it any chance that the same can be possible to run from /apps/appname and view.xpl ?  I would like to run the form the same way as e.g. xforms-espresso example. 
Simple test case: replace the content of espresso-order.xhtml by the definition from FB. 
In FB I have
image.png
but when I run it via view.xpl
image.png
XBL components are not interpreted. Can I say to Orbeon - process such fila via form runner? Or maybe it is possible to reconfigure source directory?  

//Jarek

Alessandro Vernet

unread,
Feb 10, 2021, 12:12:08 AM2/10/21
to orb...@googlegroups.com
Hi Jarek,

You can put your form definition created with Form Builder in the resources
under `forms/$app/$form/form/form.xhtml`, and tell Form Runner to use the
`resource` persistence to load that form:

<property as="xs:string" name="oxf.fr.persistence.provider.$app.$form.form"
value="resource"/>

The thing is that the `resource` persistence is read-only (see RFE #2515),
so you can't edit the form in Form Builder.

https://github.com/orbeon/orbeon-forms/issues/2515

You'll let me know if this works for you, if I somehow misunderstood your
question.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/
Reply all
Reply to author
Forward
0 new messages