xforms-submit-error inner elements are blank except error-type

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

xforms-submit-error inner elements are blank except error-type

vernekap
During submission I want to figure out validation on which field has failed. I have about 1000 fields in 48 different (hierarchical tabs)

So I need  inner elements of xforms-submit-error event.


To debug, I created another instance to capture xforms-submit-error.

And my submission is:

-------------------------------------------------------------

                <xforms:submission id="save-submission"
                        ref="instance('product-state')" action="/xforms-jsp/filesaved.jsp"
                        method="post" replace="all">
                        <xforms:action ev:event="xforms-submit-error">

                    <xforms:setvalue ref="instance('messages')/xforms-submit-error/response-body"
                        value="event('response-body')"/> 
                    <xforms:setvalue ref="instance('messages')/xforms-submit-error/error-type"
                        value="event('error-type')"/>
                    <xforms:setvalue ref="instance('messages')/xforms-submit-error/resource-uri"
                        value="event('resource-uri')"/>
                    <xforms:setvalue ref="instance('messages')/xforms-submit-error/response-status-code"
                        value="event('response-status-code')"/>
                    <xforms:setvalue ref="instance('messages')/xforms-submit-error/response-headers"
                        value="event('response-headers')"/>

                                                <xforms:message  level="modal">An error occurred while saving123!</xforms:message>
                                                <xforms:message  level="modal" ref="instance('messages')/xforms-submit-error/response-body" />
                        </xforms:action>
                </xforms:submission>

-----------------------------------------------------------------------

In the instance 'messages', error-type(validation-error) alone is set. All other fields are blank.

How Can I retrieve response-body?

with regards
Pralhad


Reply | Threaded
Open this post in threaded view
|

Re: xforms-submit-error inner elements are blank except error-type

Erik Bruchez
Administrator
Pralhad,

What version of Orbeon Forms are you using?

I am not sure I understand the issue completely.

What will your response body contain? Does the service you are calling  
at filesaved.jsp return information about which fields are invalid?

-Erik

On Jun 1, 2009, at 5:25 AM, vernekap wrote:

>
> During submission I want to figure out validation on which field has  
> failed.
> I have about 1000 fields in 48 different (hierarchical tabs)
>
> So I need  inner elements of xforms-submit-error event.
>
>
> To debug, I created another instance to capture xforms-submit-error.
>
> And my submission is:
>
> -------------------------------------------------------------
>
> <xforms:submission id="save-submission"
> ref="instance('product-state')" action="/xforms-jsp/filesaved.jsp"
> method="post" replace="all">
> <xforms:action ev:event="xforms-submit-error">
>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/response-body"
>                        value="event('response-body')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/error-type"
>                        value="event('error-type')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/resource-uri"
>                        value="event('resource-uri')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/response-status-code"
>                        value="event('response-status-code')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/response-headers"
>                        value="event('response-headers')"/>
>
> <xforms:message  level="modal">An error occurred while
> saving123!</xforms:message>
> <xforms:message  level="modal"
> ref="instance('messages')/xforms-submit-error/response-body" />
> </xforms:action>
> </xforms:submission>
>
> -----------------------------------------------------------------------
>
> In the instance 'messages', error-type(validation-error) alone is  
> set. All
> other fields are blank.
>
> How Can I retrieve response-body?
>
> with regards
> Pralhad
>
>
>
> --
> View this message in context: http://www.nabble.com/xforms-submit-error-inner-elements-are-blank-except-error-type-tp23814204p23814204.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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

Re: xforms-submit-error inner elements are blank except error-type

vernekap
Erik

I should have caught xforms-invalid. My request was not reaching the server.

with regards
Pralhad

Erik Bruchez wrote
Pralhad,

What version of Orbeon Forms are you using?

I am not sure I understand the issue completely.

What will your response body contain? Does the service you are calling  
at filesaved.jsp return information about which fields are invalid?

-Erik

On Jun 1, 2009, at 5:25 AM, vernekap wrote:

>
> During submission I want to figure out validation on which field has  
> failed.
> I have about 1000 fields in 48 different (hierarchical tabs)
>
> So I need  inner elements of xforms-submit-error event.
>
>
> To debug, I created another instance to capture xforms-submit-error.
>
> And my submission is:
>
> -------------------------------------------------------------
>
> <xforms:submission id="save-submission"
>  ref="instance('product-state')" action="/xforms-jsp/filesaved.jsp"
> method="post" replace="all">
> <xforms:action ev:event="xforms-submit-error">
>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/response-body"
>                        value="event('response-body')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/error-type"
>                        value="event('error-type')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/resource-uri"
>                        value="event('resource-uri')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/response-status-code"
>                        value="event('response-status-code')"/>
>                    <xforms:setvalue
> ref="instance('messages')/xforms-submit-error/response-headers"
>                        value="event('response-headers')"/>
>
> <xforms:message  level="modal">An error occurred while
> saving123!</xforms:message>
> <xforms:message  level="modal"
> ref="instance('messages')/xforms-submit-error/response-body" />
> </xforms:action>
> </xforms:submission>
>
> -----------------------------------------------------------------------
>
> In the instance 'messages', error-type(validation-error) alone is  
> set. All
> other fields are blank.
>
> How Can I retrieve response-body?
>
> with regards
> Pralhad
>
>
>
> --
> View this message in context: http://www.nabble.com/xforms-submit-error-inner-elements-are-blank-except-error-type-tp23814204p23814204.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws