Oleg,
> I've found that upload submission works only when attribute
> "replace" has value "all". Have you any plans to support
> replace="instance" with upload?
Some remote plans, yes :-)
> Are there techical requirements/restrictions which prohibit to use
> other values, such as "instance"?
> Maybe you could provide a quick reference into the source code,
> thanks.
Doing this actually requires submitting an HTML form in the background
as uploads can't go over XMLHttpRequest (well, you know how it is,
with HTML / JavaScript things are impossible until somebody finds a
way to do it). Some Ajax platforms (in fact, I only know of Dojo) have
options that allow you do do this: they use form submission through
hidden iframes.
Implementing this would require:
1. Write code similar to Dojo's background form submission OR use
Dojo's code OR some other existing code. Ideally we would like to
reuse existing code rather than writing our own. But we need to
make sure we can use this without conflict with the Yahoo! UI
Library which we are using now.
2. Hook this up in the client in the situations where there are some
active xforms:upload controls.
3. On the server side, recognize such submissions and do the
appropriate handling. Right now, the server, upon receiving such a
submission, assumes "all".
But it's definitely doable, and it would be a great feature,
especially since it would work transparently. But it's not done in
just a few minutes. In fact it may be a several days task do get it
right.
-Erik
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/--
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
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws