Understanding sandbox-sample output-image

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

Understanding sandbox-sample output-image

Karolin Heiss
Hey all,

I try to understand the submission in sandbox-sample "output-image".
\Orbeon.war\WEB-INF\resources\apps\xforms-sandbox\samples\output-image.xhtml

<xforms:submission id="upload-submission" xxforms:ensure-uploads="true" ref="." method="post" replace="none" resource="test:">


1. what happens with xxforms:ensure-uploads=true
2. whats resource="test:"

Thank you for sharing your knowledge,
Karolin

Reply | Threaded
Open this post in threaded view
|

Re: Understanding sandbox-sample output-image

Erik Bruchez-3
Hi Karolin,

Short answer: xxforms:ensure-uploads="true" has no effect, because
"true" is the default for that attribute ;)

Longer answer:

xxforms:ensure-uploads="false" was introduced to handle some special
situations, like for example a submission with replace="instance"
whose completion would trigger a second such submission. If the first
one is triggering upload of files from the client, the second one
should not since the server already is in sync with the client.
Ideally, this should be handled automatically, in fact we are not
fully happy with the way uploads work at the moment but haven't yet
gotten to improving that.

The "test:" URL was initially present to test some aspects of
submissions in unit tests, but got used to do "NOP" submission with
the only purpose of ensuring that uploads are in sync between the
client and the server.

-Erik

On Fri, Apr 30, 2010 at 5:36 AM, Karolin Krieg <[hidden email]> wrote:

>
> Hey all,
>
> I try to understand the submission in sandbox-sample "output-image".
> \Orbeon.war\WEB-INF\resources\apps\xforms-sandbox\samples\output-image.xhtml
>
> <xforms:submission id="upload-submission" xxforms:ensure-uploads="true"
> ref="." method="post" replace="none" resource="test:">
>
>
> 1. what happens with xxforms:ensure-uploads=true
> 2. whats resource="test:"
>
> Thank you for sharing your knowledge,
> Karolin
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Understanding-sandbox-sample-output-image-tp2076849p2076849.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
>
>


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