Submitting XML to a file

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

Submitting XML to a file

haba713
Is it possible to

a) configure the form runner to submit the instance to a file instead of
eXist repository and
b) after the submission redirect the browser to a predefined  HTTP address?

After submission a confirmation dialog is displayed. Can it be avoided?

-Harri




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Submitting XML to a file

Erik Bruchez-3
Harri,

a) is not available out of the box. It wouldn't too hard to do by creating a file-based persistence implementation.

b) is already implemented with the workflow-send button, see:


-Erik

On Tue, Oct 27, 2009 at 3:59 PM, Harri T. <[hidden email]> wrote:
Is it possible to

a) configure the form runner to submit the instance to a file instead of eXist repository and
b) after the submission redirect the browser to a predefined  HTTP address?

After submission a confirmation dialog is displayed. Can it be avoided?

-Harri




--
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




--
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
Reply | Threaded
Open this post in threaded view
|

Antw: Submitting XML to a file

Karolin Heiss
In reply to this post by haba713
I am also trying to save the instance to a file.

I learned a lot about submissions from:
http://www.w3.org/TR/xforms11/#submit-submission-element


I wonder why I can load data with my loadDoc-submission, but cant save
the data through my loadDoc-submission.

    <xforms:model id="test-instance">
      <xforms:instance src="http://localhost:8080/docs/test.xml"/>
      <xforms:submission id="saveDoc"
resource="http://localhost:8080/docs/save_test.xml" replace="none"
method="put" />
      <xforms:submission id="loadDoc"
resource="http://localhost:8080/docs/load_test.xml" replace="instance"
method="get" />
    </xforms:model>


Is it a conflict with the form runner, which does its own job, ignoring
my submission to a file?

Karo


>>> "Harri T." <[hidden email]> 10/27/2009 11:59  >>>
Is it possible to

a) configure the form runner to submit the instance to a file instead
of
eXist repository and
b) after the submission redirect the browser to a predefined  HTTP
address?

After submission a confirmation dialog is displayed. Can it be
avoided?

-Harri




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Antw: Submitting XML to a file

Alessandro  Vernet
Administrator
Karolin,

On Wed, Oct 28, 2009 at 5:51 AM, Karolin Krieg <[hidden email]> wrote:

> I am also trying to save the instance to a file.
>
> I learned a lot about submissions from:
> http://www.w3.org/TR/xforms11/#submit-submission-element
>
>
> I wonder why I can load data with my loadDoc-submission, but cant save
> the data through my loadDoc-submission.
>
>    <xforms:model id="test-instance">
>      <xforms:instance src="http://localhost:8080/docs/test.xml"/>
>      <xforms:submission id="saveDoc"
> resource="http://localhost:8080/docs/save_test.xml" replace="none"
> method="put" />
>      <xforms:submission id="loadDoc"
> resource="http://localhost:8080/docs/load_test.xml" replace="instance"
> method="get" />
>    </xforms:model>
>
>
> Is it a conflict with the form runner, which does its own job, ignoring
> my submission to a file?
Are you asking this question specifically in the context of a form
created with Form Builder, or is this a form you created "from
scratch"? If the later, I don't see why the above code wouldn't work.
Maybe the loadDoc is simply not running. Have you figured this one out
since you posted this message?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
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
Reply | Threaded
Open this post in threaded view
|

Re: Antw: Submitting XML to a file

Karolin Heiss
Hey Alex

No, I didnt figure it out. I tested a form I created from scratch.
Now I recieve the XML in a servlet and write the data in a file for
debug informations.

The sample I didnt get running is attached. I wonder whats wrong?

Thank you for your help,

Karolin


>>> Alessandro Vernet <[hidden email]> 11/12/2009 12:52  >>>
Karolin,

On Wed, Oct 28, 2009 at 5:51 AM, Karolin Krieg
<[hidden email]> wrote:
> I am also trying to save the instance to a file.
>
> I learned a lot about submissions from:
> http://www.w3.org/TR/xforms11/#submit-submission-element 
>
>
> I wonder why I can load data with my loadDoc-submission, but cant
save
> the data through my loadDoc-submission.
>
>    <xforms:model id="test-instance">
>      <xforms:instance src="http://localhost:8080/docs/test.xml"/>
>      <xforms:submission id="saveDoc"
> resource="http://localhost:8080/docs/save_test.xml" replace="none"
> method="put" />
>      <xforms:submission id="loadDoc"
> resource="http://localhost:8080/docs/load_test.xml"
replace="instance"
> method="get" />
>    </xforms:model>
>
>
> Is it a conflict with the form runner, which does its own job,
ignoring
> my submission to a file?

Are you asking this question specifically in the context of a form
created with Form Builder, or is this a form you created "from
scratch"? If the later, I don't see why the above code wouldn't work.
Maybe the loadDoc is simply not running. Have you figured this one out
since you posted this message?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/ 
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

view.xhtml (2K) Download Attachment
load_test.xml (189 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Antw: Submitting XML to a file

Alessandro  Vernet
Administrator
Karolin,

On Mon, Nov 16, 2009 at 1:38 AM, Karolin Krieg <[hidden email]> wrote:
> No, I didnt figure it out. I tested a form I created from scratch.
> Now I recieve the XML in a servlet and write the data in a file for
> debug informations.
>
> The sample I didnt get running is attached. I wonder whats wrong?

I don't have enough information to say. I assume that you expect that
the following will save the file:

<xforms:submission id="localSave"
resource="http://localhost:8080/docs/save_test.xml" replace="none"
method="put" />

Orbeon Forms will do an HTTP PUT to the URL you mentioned. Whatever
code handles that request may or may not save the data on disk.
Apparently it doesn't. So I'd look there: what is that code, and is it
supposed to save the data when it gets a PUT?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
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