xforms bugs?

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

xforms bugs?

Mark Dijkstra
Hi alexandro,
 
How are you?
 
I have a question about file uploading in Orbeon (i have Orbeon 3.7.1).
 
precondition:  I uploaded a file
 
When i want to delete a file and i have these two statements in my event-request (see REQUEST 1)
<xxforms:files>  ... </xxforms:files>
<xxforms:event name="xxforms-value-change-with-focus-change" source-control-id="upload2"/>
 
orbeon won't delete the file.
 
but
When i want to delete a file and i have this statements in my event-request (see REQUEST 2)
<xxforms:event name="xxforms-value-change-with-focus-change" source-control-id="upload2"/>
 
it deletes the file correctly.
 
how come the delete statement won't work if i have a <xxforms:files> element?
 
Do you have any documentation about xxforms:event-request ?
 
THanks in advance,
Mark Dijkstra
 
 
REQUEST 1:
<xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
<xxforms:static-state>pers:60635D0B-3359-89BE-C925-ED3E4DA0F263</xxforms:static-state>
<xxforms:dynamic-state>pers:E8B649D6-4D14-A284-8172-7FA49FCDC273</xxforms:dynamic-state>
<xxforms:files><parameter><name>upload</name><filename/><content-type>application/octet-stream</content-type><content-length>0</content-length><value/></parameter></xxforms:files>

<xxforms:action>

<xxforms:event name="xxforms-value-change-with-focus-change" source-control-id="upload2"/>

</xxforms:action>

</xxforms:event-request>

REQUEST 2:

<xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
<xxforms:static-state>pers:60635D0B-3359-89BE-C925-ED3E4DA0F263</xxforms:static-state>
<xxforms:dynamic-state>pers:E8B649D6-4D14-A284-8172-7FA49FCDC273</xxforms:dynamic-state>
<xxforms:action>

<xxforms:event name="xxforms-value-change-with-focus-change" source-control-id="upload2"/>

</xxforms:action>

</xxforms:event-request>

 



--
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: xforms bugs?

Erik Bruchez
Administrator
Mark,

xxforms:event is part of an internal (and possibly changing over time)
protocol between the client and the server. The interesting code
should be in XFormsUploadControl. This is where the magic to delete
temporary files operates:

http://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/control/controls/XFormsUploadControl.java

-Erik

On Tue, Sep 1, 2009 at 6:36 AM, Mark Dijkstra <[hidden email]> wrote:

> Hi alexandro,
>
> How are you?
>
> I have a question about file uploading in Orbeon (i have Orbeon 3.7.1).
>
> precondition:  I uploaded a file
>
> When i want to delete a file and i have these two statements in my
> event-request (see REQUEST 1)
> <xxforms:files>  ... </xxforms:files>
> <xxforms:event name="xxforms-value-change-with-focus-change"
> source-control-id="upload2"/>
>
> orbeon won't delete the file.
>
> but
> When i want to delete a file and i have this statements in my event-request
> (see REQUEST 2)
> <xxforms:event name="xxforms-value-change-with-focus-change"
> source-control-id="upload2"/>
>
> it deletes the file correctly.
>
> how come the delete statement won't work if i have a <xxforms:files>
> element?
>
> Do you have any documentation about xxforms:event-request ?
>
> THanks in advance,
> Mark Dijkstra
>
>
> REQUEST 1:
> <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
> <xxforms:static-state>pers:60635D0B-3359-89BE-C925-ED3E4DA0F263</xxforms:static-state>
> <xxforms:dynamic-state>pers:E8B649D6-4D14-A284-8172-7FA49FCDC273</xxforms:dynamic-state>
> <xxforms:files><parameter><name>upload</name><filename/><content-type>application/octet-stream</content-type><content-length>0</content-length><value/></parameter></xxforms:files>
>
> <xxforms:action>
>
> <xxforms:event name="xxforms-value-change-with-focus-change"
> source-control-id="upload2"/>
>
> </xxforms:action>
>
> </xxforms:event-request>
>
> REQUEST 2:
>
> <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
> <xxforms:static-state>pers:60635D0B-3359-89BE-C925-ED3E4DA0F263</xxforms:static-state>
> <xxforms:dynamic-state>pers:E8B649D6-4D14-A284-8172-7FA49FCDC273</xxforms:dynamic-state>
> <xxforms:action>
>
> <xxforms:event name="xxforms-value-change-with-focus-change"
> source-control-id="upload2"/>
>
> </xxforms:action>
>
> </xxforms:event-request>
>
>
>
> --
> 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