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 |
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 |
Erik
I should have caught xforms-invalid. My request was not reaching the server. with regards Pralhad
|
Free forum by Nabble | Edit this page |