使用 Java 应用程序运行 Orbeon-Form-Builder-Generate-Form

2024-04-19

我应该能够使用 Java 应用程序运行 Orbeon-Form-Builder-Generated-Form 吗?

即,将表单的源代码复制到 simple.JSP 中(使用中提到的单独部署)http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications) ?

我发现评价$表单资源 fails. Why ?

simple.jsp XML

    <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
                xmlns:xforms="http://www.w3.org/2002/xforms"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ev="http://www.w3.org/2001/xml-events"
                xmlns:xi="http://www.w3.org/2001/XInclude"
                xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
                xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
                xmlns:exforms="http://www.exforms.org/exf/1-0"
                xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
                xmlns:saxon="http://saxon.sf.net/"
                xmlns:sql="http://orbeon.org/oxf/xml/sql"
                xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <xhtml:head>
            <xhtml:title>Simple Form</xhtml:title>
            <xforms:model id="fr-form-model">

                <!-- Main instance -->
                <xforms:instance id="fr-form-instance">
                    <form>
                        <section-1>
                            <control-2/>

                        </section-1>
                        <section-2>
                            <control-3/>
                        </section-2>
                    </form>
                </xforms:instance>

                <!-- Bindings -->
                <xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')">
                    <xforms:bind id="section-1-bind" nodeset="section-1">
                        <xforms:bind id="control-2-bind" nodeset="control-2" name="control-2" type="xforms:date"/>

                    </xforms:bind>
                    <xforms:bind id="section-2-bind" nodeset="section-2">
                        <xforms:bind id="control-3-bind" nodeset="control-3" name="control-3"/>
                    </xforms:bind>
                </xforms:bind>

                <!-- Metadata -->
                <xforms:instance id="fr-form-metadata" xxforms:readonly="true">
                    <metadata>
                        <application-name>test</application-name>
                        <form-name>testf</form-name>
                        <title xml:lang="en">Simple Form</title>
                        <description xml:lang="en"/>
                        <author/>
                        <logo mediatype="" filename="" size=""/>
                    </metadata>
                </xforms:instance>

                <!-- Attachments -->
                <xforms:instance id="fr-form-attachments">
                    <attachments>
                        <css mediatype="text/css" filename="" size=""/>
                        <pdf mediatype="application/pdf" filename="" size=""/>
                    </attachments>
                </xforms:instance>

                <!-- All form resources -->
                <!-- Don't make readonly by default in case a service modifies the resources -->
                <xforms:instance id="fr-form-resources" xxforms:readonly="false">
                    <resources>
                        <resource xml:lang="en">
                            <control-3>
                                <label>input 2</label>
                                <hint/>
                                <help/>
                                <alert/>
                            </control-3>
                            <control-2>
                                <label>dATE</label>
                                <hint/>
                                <help/>
                                <alert/>
                            </control-2>
                            <section-1>
                                <label>sec1</label>
                                <help/>
                            </section-1>
                            <section-2>
                                <label>sec2</label>
                                <help/>
                            </section-2>

                        </resource>
                    </resources>
                </xforms:instance>

                <!-- Utility instances for services -->
                <xforms:instance id="fr-service-request-instance" xxforms:exclude-result-prefixes="#all">
                    <request/>
                </xforms:instance>

                <xforms:instance id="fr-service-response-instance" xxforms:exclude-result-prefixes="#all">
                    <response/>
                </xforms:instance>

            </xforms:model>
        </xhtml:head>
        <xhtml:body>
            <fr:view>
                <xforms:label ref="instance('fr-form-metadata')/title"/>
                <fr:body>
                    <fr:section id="section-1-section" bind="section-1-bind">
                        <xforms:label ref="$form-resources/section-1/label"/>
                        <xforms:help ref="$form-resources/section-1/help"/>
                        <fr:grid columns="1">
                            <xhtml:tr>

                                <xhtml:td>
                                    <xforms:input xmlns:xbl="http://www.w3.org/ns/xbl"
                                                  xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
                                                  xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
                                                  id="control-2-control"
                                                  bind="control-2-bind">
                                        <xforms:label ref="$form-resources/control-2/label"/>
                                        <xforms:hint ref="$form-resources/control-2/hint"/>
                                        <xforms:help ref="$form-resources/control-2/help"/>
                                        <xforms:alert ref="$fr-resources/detail/labels/alert"/>
                                    </xforms:input>
                                </xhtml:td>
                            </xhtml:tr>
                        </fr:grid>
                    </fr:section>
                    <fr:section id="section-2-section" bind="section-2-bind">
                        <xforms:label ref="$form-resources/section-2/label"/>
                        <xforms:help ref="$form-resources/section-2/help"/>
                        <fr:grid columns="1">
                            <xhtml:tr>
                                <xhtml:td>
                                    <xforms:input xmlns:xbl="http://www.w3.org/ns/xbl"
                                                  xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
                                                  xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
                                                  id="control-3-control"
                                                  bind="control-3-bind">
                                        <xforms:label ref="$form-resources/control-3/label"/>
                                        <xforms:hint ref="$form-resources/control-3/hint"/>
                                        <xforms:help ref="$form-resources/control-3/help"/>
                                        <xforms:alert ref="$fr-resources/detail/labels/alert"/>
                                    </xforms:input>
                                </xhtml:td>
                            </xhtml:tr>
                        </fr:grid>
                    </fr:section>
                </fr:body>
            </fr:view>
        </xhtml:body>
    </xhtml:html>

The 支持单独部署中的 Form Runner 的代码 https://github.com/orbeon/orbeon-forms/commit/909c0ea738e530f8845f5b6ec04ed9ba0254f35b3.9版本后推送。截至撰写本文时,3.9 是最新版本,因此有时您需要使用每晚构建 http://www.orbeon.com/forms/download为了这。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用 Java 应用程序运行 Orbeon-Form-Builder-Generate-Form 的相关文章

  • lambda:通过引用捕获 const 引用是否应该产生未定义的行为?

    我刚刚在代码中发现了一个令人讨厌的错误 因为我通过引用捕获了对字符串的 const 引用 当 lambda 运行时 原始字符串对象已经消失了 引用的值是空的 而目的是它包含原始字符串的值 因此出现了错误 让我困惑的是 这并没有在运行时引发崩
  • BigInteger 数字的实现和性能

    我用 C 编写了一个 BigInteger 类 它应该能够对任何大小的所有数字进行运算 目前 我正在尝试通过比较现有算法并测试它们最适合哪些位数来实现非常快速的乘法方法 但我遇到了非常意外的结果 我尝试进行 20 次 500 位数字的乘法
  • Inflector.Net 的替代品

    我想在我的项目中使用 inflector net 刚刚谷歌了一下 好像已经消失了 http andrewpeters net inflectornet http andrewpeters net inflectornet 还有其他选择吗 编
  • Chrome 开发工具中的 __puppeteer_evaluation_script__ 为空

    Puppeteer 版本 9 0 0 将调试器放入 JavaScript 代码并启动 puppeteer 时 chrome 开发工具中的源代码为空 使用 Node 运行脚本 scripts test echo Error no test s
  • Docker 和 Python virtualenv 有什么区别?

    根据我对Docker的理解 它是一个用于虚拟环境的工具 用他们的行话来说 这称为 容器化 这或多或少就是 Python 的 virtualenv 所做的事情 但是 您可以使用 virtualenvin码头工人 那么 它是虚拟环境中的虚拟环境
  • 如何监控 Tomcat 服务器上的多个 Web 应用程序(使用 JMX)?

    有没有办法监控单个 Web 应用程序的 CPU 和内存消耗Tomcat server I have Tomcat打开其 JVM 下的所有 Web 应用程序 因此我只能看到一个 JVM 无法单独监控每个 Web 应用程序 Web 应用程序是密
  • jquery中删除多个元素

    在我当前的代码中我有这样的 foo remove bar remove 有没有办法通过使用删除多个元素remove once 它不限于 remove 但只需用逗号分隔选择器 foo bar remove 多重选择器 选择器1 选择器2 选择
  • 如何调整 UIImageView 的大小以适应底层图像而不移动它?

    我有一个 UIImageView 其框架在加载图像之前设置 对于图像来说总是太大 因此 例如 当我尝试圆角时 什么也没有发生 如何调整框架大小 使其与底层图像的大小相同 同时确保 UIImageView 的中心点不会改变 如果更改 UIVi
  • CPython的静态对象地址和碎片

    I read 对于Python来说 if x 是存储x的内存地址 这是给定的id对象的属性永远不会改变 这意味着对象在其生命周期中始终存储在给定的内存地址中 这就引出了一个问题 虚拟 内存碎片怎么样 说一个物体A位于地址 1 有id1 占用
  • IIS7的工作进程是什么?

    我正在尝试在 Visual Studio 2008 中执行 附加到进程 进行调试 但我无法弄清楚要附加到哪个进程 帮助 事实上它仍然是 w3wp exe 您需要检查 显示所有会话中的进程 让它显示的选项 这也让我困惑了一段时间
  • 如果不调用notify(),等待线程会发生什么?

    如果不调用notify 等待线程会发生什么 这是虚假唤醒吗 If a waiting Thread is not notified通过致电notify or notifyAll 在所述线程正在等待的对象上 则可能会发生以下任一情况 the

随机推荐

  • Chrome 调试协议:HeapProfiler.getHeapSnapshot 忽略回调

    我正在开发一个测试套件 作为 Chrome 扩展实现 该套件使用 Chrome Chromium 的远程调试协议以编程方式获取和分析堆快照 因为Profiler 似乎不是公共协议的一部分 我正在使用这一页 http trac webkit
  • HTML 多选框

    我只是想知道下面的表格的名称是什么 我从早上就在谷歌上搜索 HTML 表单列表 但我在任何地方都找不到这种表单 谁能告诉我这个表单的确切名称以及它是否可以在 HTML 表单中使用 我只想在我的网站中添加这种形式 它适用于 HTML 还是我应
  • 将变量传递给 Google Cloud Functions

    我刚刚在 Beta Python 3 7 运行时中使用 HTTP 触发器编写了 Google Cloud Function 现在我试图弄清楚如何在调用函数时将字符串变量传递给函数 我已阅读文档 但没有找到任何相关内容 我的触发器类似于 ht
  • 如何在光线平行且不使用光线模式的情况下运行函数?

    After sudo pip3 install ray 我创建了一个函数foo 在射线装饰器中定义 import ray ray init ray remote def foo x print x 我希望能够使用foo并行和常规模式 忽略装
  • ViewModel 和 Service 类的实例化

    我试图理解 ViewModel 和 Service 类的实例化 并将其写下来供其他人使用 请在需要的地方更正 添加 ViewModel 和服务的实例化并不是以最常见的方式完成的 这是使用反射完成的 在 TipCalc 中 您有 public
  • 在特定日期触发 UILocalNotification

    我想开火UILocalNotification在特定日期 如果我使用这段代码 NSCalendar gregorian NSCalendar alloc initWithCalendarIdentifier NSGregorianCalen
  • 尝试理解 Pytorch 的 LSTM 实现

    我有一个包含 1000 个示例的数据集 其中每个示例都有5特征 a b c d e 我想喂7LSTM 的示例 以便它预测第 8 天的特征 a 阅读 nn LSTM 的 Pytorchs 文档 我得出以下结论 input size 5 hid
  • Akka 通过可堆叠行为拦截接收

    Akka 和 Scala 新手 请根据需要随意编辑问题 以便清楚地表达我在 Scala 和 Akka 领域的意图 在展示代码片段之前 这是我想要解决的问题 我本质上想开发一个通用模块 供我的团队在使用 Akka Actor 开发应用程序时使
  • Tcl正则表达式

    set d aa1 1 set d aa2 1 set d aa3 1 set d aa4 1 set d aa5 1 set d aa6 1 set d aa7 1 set d aa8 1 set d aa9 1 set d aa10 1
  • Fortran 读取混合文本和数字

    我正在使用 Fortran 90 读取包含以下格式数据的文件 number 125 var1 2 var2 1 var3 4 number 234 var1 3 var2 5 var3 1 我尝试了以下命令并且工作正常 read 2 tem
  • Ionic Jasmine:env.stopOnSpecFailure 编译成功后不是函数

    将 Ionic 与 jasmine karma 一起使用 在运行测试时 编译成功 但在 jasmine 仪表板中出现空屏幕 控制台中出现错误 以下教程 https leifwells github io 2017 08 27 testing
  • 受范数不等式约束的二次函数最小化

    我正在尝试解决以下不等式约束 给定 N 只股票的时间序列数据 我试图构建一个投资组合权重向量以最小化回报的方差 目标函数 min w T sum w s t e n T w 1 left w right leq C where w是权重向量
  • 从外部访问 Google 地图

    我有一些 javascript 代码 可以绘制 v3 GoogleMap 我想从外部访问地图对象 另一个js文件 是否有可能不创建额外的全局变量来引用地图 单独的 JS 文件在同一范围内加载和执行 因此无论您使用一个还是多个 JS 文件 都
  • 将参数从 tasklet 步骤添加到作业上下文,并在 Spring Batch 的后续步骤中使用

    目前 我使用 jobParameters 来获取 FlatFileItemReader 和 FlatFileItemWriter 的文件名 测试我的批次是可以的 但我的目标是读取某个目录中的文件 该目录中只有这个文件 并且文件名可能会改变
  • 错误:invalid_request 缺少必需参数:范围(Restify 和 Passportjs w/ Google OAuth2)

    因此 我在使用 Restify 和 Passportjs Google OAuth2 策略 时遇到了 Node js 应用程序的问题 当我使用passport authenticate 它给了我以下错误 400 这是一个错误 错误 无效 请
  • 提高Python代码的速度

    我有一些包含许多类的 python 代码 我用了cProfile发现程序运行总时间为68秒 我发现一个类中有以下函数Buyers这 68 秒中大约需要 60 秒 我必须运行该程序大约 100 次 因此速度的任何提高都会有所帮助 您能建议通过
  • 如何查找 C++ 中的内存泄漏

    在嵌入式环境中检测 C 内存泄漏的好方法是什么 我尝试重载 new 运算符来记录每个数据分配 但我一定做错了什么 这种方法不起作用 还有其他人遇到过类似的情况吗 这是 new 和 delete 运算符重载的代码 EDIT 完全披露 我正在寻
  • 带有大标题的导航栏 iOS 11 的图像

    AppStore app has an icon with an image on the right side of the NabBar with Large Title 如果有人的话我真的很感激知道如何实施 it or ideas关于
  • 从 FlowDocument 创建 XPS 文档并即时附加它

    我有一个 FlowDocument 我想将其转换为 XPS 文档并将其附加到电子邮件中并一起发送 我正在使用这个代码 public static Stream FlowDocumentToXPS FlowDocument flowDocum
  • 使用 Java 应用程序运行 Orbeon-Form-Builder-Generate-Form

    我应该能够使用 Java 应用程序运行 Orbeon Form Builder Generated Form 吗 即 将表单的源代码复制到 simple JSP 中 使用中提到的单独部署 http wiki orbeon com forms