Submission errors are not getting displayed in separate web application

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

Submission errors are not getting displayed in separate web application

lakshmipmandava
Hi All,

I deployed xforms in separate web application and submitting to rest resource. some times because of xsd binds not able to save file and able to see some validations and file not getting saved and following is being used.

 <xforms:submission id="s001" ref="instance('clinicalExamniationInstance')" method="post"
                       action="/rest/patientFile/<%= request.getParameter("cardId") %>/general/" replace="instance"
                       instance="clinicalExamniationInstance">
        <xforms:message ev:event="xforms-submit-error" level="xxforms:log-error">A submission error occurred:<xforms:output value="event('error-type')"/></xforms:message>
    </xforms:submission>

Would like to how to show form is not saved successful.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Submission errors are not getting displayed in separate web application

Erik Bruchez
Administrator
So are you saying the message "A submission error occurred:" doesn't
show? This should work, in separate deployment or not.

-Erik

On Thu, Dec 23, 2010 at 4:55 AM, lakshmipmandava
<[hidden email]> wrote:

>
> Hi All,
>
> I deployed xforms in separate web application and submitting to rest
> resource. some times because of xsd binds not able to save file and able to
> see some validations and file not getting saved and following is being used.
>
>  <xforms:submission id="s001" ref="instance('clinicalExamniationInstance')"
> method="post"
>                       action="/rest/patientFile/<%=
> request.getParameter("cardId") %>/general/" replace="instance"
>                       instance="clinicalExamniationInstance">
>        <xforms:message ev:event="xforms-submit-error" level="xxforms:log-error">A
> submission error occurred:<xforms:output
> value="event('error-type')"/></xforms:message>
>    </xforms:submission>
>
> Would like to how to show form is not saved successful.
>
> Thanks
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Submission-errors-are-not-getting-displayed-in-separate-web-application-tp3162011p3162011.html
> Sent from the Orbeon Forms (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
Reply | Threaded
Open this post in threaded view
|

Re: Submission errors are not getting displayed in separate web application

Mahender Didwania
In reply to this post by lakshmipmandava
Assuming you want to the message to be shown to the end-user rather than being shown just in the logs, modify
<xforms:message ev:event="xforms-submit-error" level="xxforms:log-error">A
submission error occurred:<xforms:output
value="event('error-type')"/></xforms:message>

to

<xforms:message ev:event="xforms-submit-error" level="modal">A
submission error occurred:<xforms:output
value="event('error-type')"/></xforms:message>


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