Posted by
Alessandro Vernet on
Oct 15, 2009; 6:26pm
URL: https://discuss.orbeon.com/A-problem-with-unnecessary-xforms-value-changed-after-replace-instance-submission-and-one-more-thing-tp252592p252808.html
Maciej,
2009/10/14 Maciej Arciuch <
[hidden email]>:
> 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?
It is the correct behavior according to the XForms specification, but
we don't think it should. We have a proposal to change this, which we
will be discussing at the XForms WG
(
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-refresh-events),
and which hopefully, in some form or another, will make it into the
XForms specification.
In the meantime, we took the liberty of implementing this the way we
think it should be done, and the way you expected it to work. Those
changes are very recent and haven't made it yet to the "master"
nightly builds we publish. If you are interested, you can test this in
this build:
http://forge.objectweb.org/nightlybuilds/ops/ops/orbeon-development.war.
The changes should make it to the nightly builds in the next few
weeks.
> So far I've solved the problem by making my submission replace="none" and
> triggering an ugly JavaScript redirect upond xforms-submit-done.
If you are not interested in the result, i.e. if it is always the same
as what you send, you should indeed use replace="none". But I am not
sure why you need to run JavaScript on xforms-submit-done. What does
the JavaScript do?
> 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?
The HTML converter produces some unexpected output with the text you
have inside the meta element, because you are not supposed to have any
content there (
http://www.w3.org/TR/html5/semantics.html#meta).
Instead of:
<meta property="description">META VALUE WHICH SHOULDN'T BE VISIBLE</meta>
Try:
<meta property="description" content="META VALUE WHICH SHOULDN'T BE VISIBLE"/>
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