sumission error: Document is not dirty but dynamic...

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

sumission error: Document is not dirty but dynamic...

Myxlyxl
Hi everybody,

i got the following error-message when a submission returns:

"Document is not dirty but dynamic state turns out to be different from original."

The submission:

<xforms:submission validate="false" id="save-silent-submission2" action="/gekoto/web/secure/saveTreeData method="put" replace="none" ref="instance('tree-instance')">
        <xforms:message ev:event="xforms-submit-error" level="modal">Fehler beim Speichern! </xforms:message>
          <xxforms:script>parent.document.getElementById('validationErrors').src='/gekoto/web/secure/listValidationErrors?customerSolutionIdentifier=1|2|3|4' + (new Date().getTime());</xxforms:script>
        </xforms:action>
      </xforms:submission>

The submission works, if I remove the @ref - attribute, but then it submits the wrong instance. The submission works with the @ref-attribute if I call it during the xforms-ready-action. But if I call it within the following trigger it does not work:

<xforms:trigger appearance="minimal">
                <xforms:label>Agenten</xforms:label>
                <xforms:action ev:event="DOMActivate">
                  <xxforms:script>setRedirectParam('N101D2')</xxforms:script>
                 
                                  <xforms:send submission="save-silent-submission2" ev:event="DOMActivate" />
                                 
                </xforms:action>
              </xforms:trigger>

This trigger is located within a <xforms:switch>.

Perhaps somebody sees, what I am doing wrong (we use Orbeon 3.6)?



Thanks a lot
Cheers Michael
Reply | Threaded
Open this post in threaded view
|

Re: sumission error: Document is not dirty but dynamic...

Myxlyxl
Hi, it's me again...

I found a way to avoid the error. The point is, that I load initially the tree-instance in the xforms-ready-action by activating another submission:

<xforms:send submission="load-tree-submission" ev:event="xforms-ready" />

<xforms:submission id ="load-tree-submission" ref="instance('tree-instance')" replace="instance" instance="tree-instance" method="post" action="/gekoto/web/secure/loadTreeData"/>

When I do not load the tree-instance via this construct but directly with:

<xforms:instance src="/gekoto/web/secure/loadTreeData" id="tree-instance"/>

everything is working quite fine. However I think it should work the other way too. Perhaps its working with Orbeon 3.7... I didnt try it, as our customer does not want to upgrade to a "developer - release"...

Cheers Michael
Reply | Threaded
Open this post in threaded view
|

Re: Re: sumission error: Document is not dirty but dynamic...

Erik Bruchez
Administrator
Good that you found the issue. This was probably fixed with 3.7.x as
we have done a lot of changes to the core of the XForms engine since
3.6.

-Erik

On Tue, Jul 21, 2009 at 12:36 AM, Myxlyxl<[hidden email]> wrote:

>
> Hi, it's me again...
>
> I found a way to avoid the error. The point is, that I load initially the
> tree-instance in the xforms-ready-action by activating another submission:
>
> <xforms:send submission="load-tree-submission" ev:event="xforms-ready" />
>
> <xforms:submission id ="load-tree-submission"
> ref="instance('tree-instance')" replace="instance" instance="tree-instance"
> method="post" action="/gekoto/web/secure/loadTreeData"/>
>
> When I do not load the tree-instance via this construct but directly with:
>
> <xforms:instance src="/gekoto/web/secure/loadTreeData" id="tree-instance"/>
>
> everything is working quite fine. However I think it should work the other
> way too. Perhaps its working with Orbeon 3.7... I didnt try it, as our
> customer does not want to upgrade to a "developer - release"...
>
> Cheers Michael
>
> --
> View this message in context: http://www.nabble.com/sumission-error%3A-Document-is-not-dirty-but-dynamic...-tp24572472p24582923.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
>
> --
> 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