Re: Re: Re: A problem with unnecessary xforms-value-changed after replace="instance" submission and one more thing
Posted by
Maciej Arciuch on
Oct 26, 2009; 8:43am
URL: https://discuss.orbeon.com/A-problem-with-unnecessary-xforms-value-changed-after-replace-instance-submission-and-one-more-thing-tp252592p276771.html
Erik Bruchez-3 wrote
You could also try to force an RRRR in the xforms-submit-done:
<xforms:action ev:event="xforms-submit-done">
<xforms:rebuild/>
<xforms:recalculate/>
<xforms:revalidate/>
<xforms:refresh/>
...
</xforms:action>
Thanks, that did the trick! It solved my "dirty form detection" problem (xforms-submit-done is finally marks the end of submission and of events it triggers), as well as the problem of unnecessary xforms-value-changes: I raise a flag on xforms-submit, cancel it on xforms-submit-done and use XSLT transform which adds an "if" condition blocking the execution of xforms-value-changed handlers when the flag is on.
If anyone has experienced the same problem - this might be the solution.
Nevertheless I'm eagerly waiting for the inclusion of the xforms-value-changed handling into the main tree.
Best wishes, Maciek