Login  Register

A problem with unnecessary xforms-value-changed after replace="instance" submission and one more thing

Posted by Maciej Arciuch on Oct 14, 2009; 4:13pm
URL: https://discuss.orbeon.com/A-problem-with-unnecessary-xforms-value-changed-after-replace-instance-submission-and-one-more-thing-tp252592.html

Hello everyone,

I've been wondering if you could help me with a problem I've
encountered. The system I'm working on provides a simple facility to
save the content of the current form using a submission. The submission
is a replace="instance" submission, its PFC-based backend makes some
(small) data modifications and returns the altered version back to the
form. In order to simplify the considerations I've forged a mock form
with a mock GET submission to a static file, the same file which is the
default value of the instance. This submission mocks my "save submission".

The problem is that even if the data returned from the submission is
exactly the same as the data sent (which is the case of my test form),
the xforms-value-changed is triggered and an event handler subscribed to
xforms-value-changed event and placed withing a control bound to data
that hasn't changed get fired. Is it a correct behaviour? If it is - can
I suppress xforms-value-changed after the submission? If it's not - will
it be fixed? It is easy to reproduce this problem with a form I've
uploaded here: http://gamma.mini.pw.edu.pl/~arciuchm/esp.xhtml (it works
in XForms Sandbox). Why does the popup appear?

So far I've solved the problem by making my submission replace="none"
and triggering an ugly JavaScript redirect upond xforms-submit-done. Is
there any better solution? I've browsed the archives searching for a
clear answer, but I couldn't find a definitive answer to my problem. If
I've missed something, I apologize and please point me to it.

The second problem is that the form's HTML file contains a meta field
(<meta> something </meta>, which shouldn't be displayed, but after
Orbeon transformations the meta tag get opened (see the top). How can I
fix it?

Thanks in advance,
--
Maciej Arciuch
programista
tel. +48 22 564 2482


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

smime.p7s (3K) Download Attachment