The sample "Pull initial form data from a service" does not work

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The sample "Pull initial form data from a service" does not work

waller
I try to run the sample "Pull initial form data from a service", however, it does not work for me.

can anyone make it work?

thank  you


<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:xforms="http://www.w3.org/2002/xforms" 
      xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" 
      xmlns:ev="http://www.w3.org/2001/xml-events"> 
    <head> 
        <title>Pull initial form data from a service</title> 
        <xforms:model> 

             
            <xforms:instance id="user-data"> 
                <registration xmlns=""> 
                    <first-name/> 
                    <last-name/> 
                </registration> 
            </xforms:instance> 

             
            <xforms:send ev:event="xforms-model-construct-done" submission="load-data-submission"/> 
            <xforms:submission id="load-data-submission"
                               method="get" serialization="none"
                               resource="http://github.com/orbeon/orbeon-forms/raw/master/src/resources/apps/xforms-sandbox/samples/howto/load-initial-form-data-pull-instance.xml" 
                               replace="instance" instance="user-data"/> 

        </xforms:model> 
        <style type="text/css"> .xforms-label { display: block; } fieldset { width: 15em; margin-top: 1em; } </style>      </head> 
    <body> 
        <fieldset> 
            <legend>Registration</legend> 
            <xforms:input ref="first-name"> 
                <xforms:label>First name</xforms:label> 
            </xforms:input> 
            <xforms:input ref="last-name"> 
                <xforms:label>Last name</xforms:label> 
            </xforms:input> 
        </fieldset> 
    </body> 
</html> 
Reply | Threaded
Open this post in threaded view
|

Re: The sample "Pull initial form data from a service" does not work

Alessandro  Vernet
Administrator
This doesn't work with the XML file hosted on Github because Github
returns a media type of text/plain, instead of an XML media type (e.g.
application/xml). You can see this in the orbeon.log.

Alex

On Mon, Mar 15, 2010 at 4:13 PM, waller <[hidden email]> wrote:

>
> I try to run the sample "Pull initial form data from a service", however, it
> does not work for me.
>
> can anyone make it work?
>
> thank  you
>
>
> <html xmlns="http://www.w3.org/1999/xhtml"
>      xmlns:xforms="http://www.w3.org/2002/xforms"
>      xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>      xmlns:ev="http://www.w3.org/2001/xml-events">
>    <head>
>        <title>Pull initial form data from a service</title>
>        <xforms:model>
>
>            <!-- User in which user data is collected -->
>            <xforms:instance id="user-data">
>                <registration xmlns="">
>                    <first-name/>
>                    <last-name/>
>                </registration>
>            </xforms:instance>
>
>            <!-- Load initial data from a service -->
>            <xforms:send ev:event="xforms-model-construct-done"
> submission="load-data-submission"/>
>            <xforms:submission id="load-data-submission"
>                               method="get" serialization="none"
>
> resource="http://github.com/orbeon/orbeon-forms/raw/master/src/resources/apps/xforms-sandbox/samples/howto/load-initial-form-data-pull-instance.xml"
>                               replace="instance" instance="user-data"/>
>
>        </xforms:model>
>        <style type="text/css">
>            .xforms-label { display: block; }
>            fieldset { width: 15em; margin-top: 1em; }
>        </style>
>    </head>
>    <body>
>        <fieldset>
>            <legend>Registration</legend>
>            <xforms:input ref="first-name">
>                <xforms:label>First name</xforms:label>
>            </xforms:input>
>            <xforms:input ref="last-name">
>                <xforms:label>Last name</xforms:label>
>            </xforms:input>
>        </fieldset>
>    </body>
> </html>
> --
> View this message in context: http://n4.nabble.com/The-sample-Pull-initial-form-data-from-a-service-does-not-work-tp1594166p1594166.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet