Inappropriate display of message element text

Project:formsPlayer
Version:1.5.7.1013
Component:User interface
Category:bug
Priority:normal
Assigned:Paul Butcher
Status:closed
Description

There is a string displayed on initial load of the form
I have a submission element that contains a message element with ev:event="xforms-submit-error"

<xforms:message level="modal" ev:event="xforms-submit-error" class="top">Failed to save.</xforms:message>

The contents of the message element appears in the window before the xform is fully rendered. (Failed to save.)
I have also tried placing the message inside an action element - same result.
Have seen this 'forever'

Updates

#1 submitted by Paul Butcher on Tue, 2008-01-15 16:20
Assigned to:» Paul Butcher
Status:new» active
Attachment:submit.html (2.21 KB)

Could you provide an example of this? The attached form contains a submission element with two message elements, both of which have inline text. For me, there is no unexpected text visible.

#2 submitted by fmcgovern on Wed, 2008-01-16 22:22
Status:active» closed

This is only visible when the xform is displayed from our website.
I solved the problem by removing the explicit text from the message element and adding an instance element with the error message "Failed to save." and using the output element to reference it inside of the message element.

<xforms:submission relevant="false" validate="true" id="sub-configuration" method="put" action="config_submitted1.xml">
<xforms:action ev:event="xforms-submit-error">
<xforms:message level="modal" ev:event="xforms-submit-error" class="top"><xforms:output ref="instance('action-states')/validation-failure-message"/></xforms:message>
</xforms:action>
</xforms:submission>

#3 submitted by Mark Birbeck on Wed, 2008-01-16 22:33

Hi Frank,

I wonder if it's to do with delivering the page from the network? Perhaps you are able to see the message due to a small delay whilst the page is downloaded, whereas when running the document from a local disk the whole thing might happen too quickly.

Mark

#4 submitted by fmcgovern on Thu, 2008-01-17 15:45

I agree...