Hello Alex,
I've gone through most of Orbeon documentation and learned how to use the form builder and form runner since we exchanged a few messages about 2 months ago. I can run my forms as outlined in the documents without any issues. However, I have another question now. Hypothetical scenario: 1. Build an orbeon form using the Form Builder 2. Copy the source code of the form and paste it in an xquery file to populate it with data from xml data. 3. Above xquery is part of an application built, packaged and hosted on an exist-db server. 4. Do not want to use the Form Runner to process this form at run time. 5. Can I use Orbeon's xforms engine jar (orbeon-xforms-filter.jar) to render the form in exist-db? This scenario is completely outside the tomcat and orbeon runtime environments and is hosted on an external exist-db server, not the internal exist-db used by orbeon. This is kind of similar to using xforms engine with java applications or emedding support in orbeon 4.7 (http://blog.orbeon.com/2014/09/embedding-support-in-orbeon-forms-47.html). A) If the answer to question 5 above is yes where exactly do I copy the above jar file under exist-db directory? B) I am guessing that I need the information down below to go in exist's web.xml file? C) Is there any other configuration to make all this work? Or this won't work at all? <filter> <filter-name>orbeon-xforms-filter</filter-name> <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class> <init-param> <param-name>oxf.xforms.renderer.context</param-name> <param-value>/orbeon</param-value> </init-param> <init-param> <param-name>oxf.xforms.renderer.default-encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>/views/*</url-pattern> <url-pattern>/edit/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>/orbeon/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> Best Regards, Musa |
Administrator
|
Hi Musa, We don't support using the orbeon-xforms-filter.jar for code generated by Form Builder, we just support it for "plain XForms". (But, even if we don't "support" it, it might work, and we've even recently fixed a regression that prevented this to work. So it might still be an option for you, just not one that I can really recommend.) Alternatively, you could, from your XQuery call the Form Runner embedding API (see doc below), and setup Orbeon Forms to call your custom persistence layer implemented in eXist that pre-fills the form data. Or you could not change the form definition, and instead use custom model logic to call some code that replaces or fills the instance when needed. Alex On Thu, Jun 25, 2015 at 8:58 PM, smylie <[hidden email]> wrote: Hello Alex, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex. Somehow, I missed your reply earlier. All right I will look into your recommendation to see if I can get it to work.
-- Regards, Musa On Wednesday, July 8, 2015 at 7:20:45 PM UTC-5, Alessandro Vernet wrote:
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Musa, sounds good, you'll let us know how it works out for you. Alex On Mon, Aug 31, 2015 at 9:22 PM Smylie <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |