如何查看保存在 eXist-db 中的 Orbeon 表单的来源? [英] How to view the source of an Orbeon form saved in eXist-db?

查看:43
本文介绍了如何查看保存在 eXist-db 中的 Orbeon 表单的来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自 Orbeon XForms 教程,据我所知,Orbeon 将数据保存在 eXist-db(内置于 Orbeon)中.示例应用程序将一本书的数据以 xml 格式保存在 eXist-db 中.根据教程,要在浏览器中查看数据,我首先要禁用web.xml中的orbeon-exist-filter,然后才能打开http:///orbeon/exist/rest/db/orbeon/my-bookcast/books.xml.

From the Orbeon XForms tutorial tutorial, I understand that Orbeon saves data in eXist-db (built into Orbeon). The sample application saves the data of a book in xml format in eXist-db. According to the tutorial, to view the data in browser, I first have to disable the orbeon-exist-filter in web.xml, and can then open http://<host_name>/orbeon/exist/rest/db/orbeon/my-bookcast/books.xml.

我也明白,当我使用 Orbeon Form Builder 制作表单(没有任何代码仅使用鼠标拖放)时,表单也会保存在 eXist-db 中.我想知道:

I also understand that when I have made a form using Orbeon Form Builder (without any code using only mouse drag and drop) the form is also saved in eXist-db. I am wondering:

  1. 如何查看保存在 eXist-db 中的表单(表单的源代码)?我认为有一个用于访问它的 URI/URL(如示例教程).如果是,URI/URL 是什么?在 orbeon 中保存了 URI/URL 的位置是什么?
  2. 如何查看输入到表单中的数据?
  3. 是否可以让 Orbeon 指向 eXist-db 的外部实例而不是内置实例?

提前致谢.

推荐答案

一般来说,如果您在使用 eXist 和 Orbeon 时使用工具来监视 HTTP 请求,那确实很有帮助.请参阅监控 HTTP 请求.我个人在 OS X 上同时使用 HttpScoop 和 Charles.使用这些工具,您将确切地看到 Orbeon Forms 如何从持久层和 eXist 读取和写入.

As a general thing, it really helps if you use a tool to monitor HTTP requests when working with eXist and Orbeon. See Monitoring HTTP Requests. I personally use both HttpScoop and Charles on OS X. With such tools you will see exactly how Orbeon Forms reads and writes from the persistence layer and eXist.

  1. 对于已发布的表单定义:

  1. For a published form definition:

http://{$host}/orbeon/fr/service/persistence/crud/{$app}/{$form}/form/form.xhtml

http://{$host}/orbeon/fr/service/persistence/crud/{$app}/{$form}/form/form.xhtml

对于刚刚由 Form Builder 保存(但未发布)的表单定义:

For a form definition just saved (but not published) by Form Builder:

http://{$host}/orbeon/fr/service/exist/crud/orbeon/builder/data/{$document}/data.xml

http://{$host}/orbeon/fr/service/exist/crud/orbeon/builder/data/{$document}/data.xml

您的意思是不使用 Form Runner Summary 页面?类似的东西:

You mean without using the Form Runner Summary page? Something like:

http://{$host}/orbeon/fr/service/exist/crud/{$app}/{$form}/data/{$document}/data.xml

http://{$host}/orbeon/fr/service/exist/crud/{$app}/{$form}/data/{$document}/data.xml

是的.请参阅配置 Form Runner eXist 数据库.

要从浏览器访问持久性 API,您还需要:

To access the persistence API from the browser, you will also want:

<property as="xs:string"
  processor-name="oxf:page-flow"
  name="service-public-methods"
  value="#all"/>

但不要把它留在生产中!

But don't leave that in production!

这篇关于如何查看保存在 eXist-db 中的 Orbeon 表单的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆