XBL with <xforms:submission>

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XBL with <xforms:submission>

kevindesilva
Hi

Has anyone got an example of an XBL component doing an <xforms:submission>

I can't see to get this working (in form builder)

   <xbl:binding id="fb-input" element="fr|kevin-stuff">

        <metadata xmlns="http://orbeon.org/oxf/xml/form-builder">
            <display-name lang="en">My Button</display-name>
            <icon lang="en">
                <small-icon>/apps/my-icon.gif</small-icon>
                <large-icon>/apps/my-icon.gif</large-icon>
            </icon>
            <datatype>xs:anyURI</datatype>           
            <template>
                <fr:button xxforms:modal="false">
                    <xforms:label ref=""/>
                    <xforms:hint ref=""/>
                    <xforms:help ref=""/>
                    <xforms:alert ref="$fr-resources/detail/labels/alert"/>
                    <xforms:action ev:event="DOMActivate">
                      <xforms:submission id="submitForm-submission" class="fr-service"
                         ref="instance('fr-form-instance')"
                         resource="http://localhost:8080/myengine/SubmitForm"
                         method="post"
                         serialization="application/xml"
                         mediatype="application/xml"
                         replace="instance"
                        instance="fr-form-instance"/>
                    </xforms:action>
                </fr:button>
            </template>
        </metadata>
       
    </xbl:binding>