在点击发送按钮事件时,我们在哪里可以获得xml /元数据格式的表单数据?

时间:2015-03-23 15:22:48

标签: xml scala orbeon xforms

我是一名新的学习者。作为需求的一部分,我需要在activemq队列中插入表单数据以用于提交事件。我尝试调试send方法代码,以便知道在点击" FormRunnerActions.scala"中的发送按钮时,我们在xml格式中获取文档/表单数据到底在哪里?类。由于我的代码分析不足,我无法找到我在哪里获得xml格式的表单数据。

任何人都可以帮助我获取文件名/方法名称,我们可以获取并以字符串格式保存表单数据以发送按钮单击事件。一旦我在字符串中获得表单数据(XML格式),我将在队列中插入字符串。

例如,如果我单击联系人表单中的发送按钮,则下面的表单数据(xml格式)应该是一个字符串变量,

<?xml version="1.0" encoding="UTF-8"?><form xmlns:xxi="http://orb
eon.org/oxf/xml/xinclude" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/X
Include" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="h
ttp://www.w3.org/2001/XMLSchema" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:xbl="http://www.
w3.org/ns/xbl" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:pipeline="java:org.orbeon.oxf.process
or.pipeline.PipelineFunctionLibrary" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:soap="ht
tp://schemas.xmlsoap.org/soap/envelope/" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:exf="http://
www.exforms.org/exf/1-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <contact>
        <first-name>Erik</first-name>
        <last-name>Bruchez</last-name>
        <email>info@orbeon.com</email>
        <phone>6505555555</phone>
    </contact>
    <message>
        <order-number>O888</order-number>
        <topic>returns</topic>
        <comments>Please answer me!</comments>
    </message>
</form>

提前致谢。

1 个答案:

答案 0 :(得分:1)

我们在this forum中回答了同样的问题。