Hi Team, Currently we are facing issues with error handling. 1.
In no script mode: How can we show error message for each field? We need to show the error for the particular field on the top, is it possible? In the logs we are getting only the xforms-submit-error. So we are not able to distinguish between what went wrong. 2.
Error handling in xpl.
a.
We are using the email processor,If the smtp fails or if the mail is not sent then we need to show a our own error page to the user. Is it possible to catch these kind of errors, process it and routing it to the next page?.
b.
If the webservice fails, then also we need to show a page, from there he can go back to the form and resubmit it. For both the above conditions I don’t want to use the error.xpl provided by orbeon.
3.
In noscript mode the radio control is getting transformed to fieldset while rendering in the browser (orbeon-PE-3.9 version).(However in normal java script enabled mode it is working fine). Actual code: <xforms:select1 ref="complaint/contacttype" appearance="full" id="contacttype"> <xforms:label class="labelwrapper">Ik wil antwoord per</xforms:label> <xforms:alert>Required</xforms:alert> <xforms:item> <xforms:label>Email</xforms:label> <xforms:value>Email</xforms:value> </xforms:item> <xforms:item> <xforms:label>Telefoon</xforms:label> <xforms:value>Telefoon</xforms:value> </xforms:item>
</xforms:select1> Html renedered from the browser: <fieldset class="xforms-control xforms-select1 xforms-incremental xforms-select1-appearance-full" id="my-accordion$contacttype"> <legend class="xforms-label">Ik wil antwoord per</legend> <span class="xforms-selected"><label for="my-accordion$contacttype$$e0"> <input type="radio" checked="" value="h3OU3eWfoLs=" name="my-accordion$contacttype" id="my-accordion$contacttype$$e0">Email</label> </span> <span class="xforms-deselected"><label for="my-accordion$contacttype$$e1"> <input type="radio" value="BgLGydAAg36n/tw6m04IYQ==" name="my-accordion$contacttype" id="my-accordion$contacttype$$e1">Telefoon</label> </span>< /fieldset> I would require your help in solving these issues. Please do the needful asap. Thanks & Regards, Lingesh P Developer. Mahindra Satyam. DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- 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 |
Please provide some suggestion asap. Reagards, Lingesh P From: Lingesh_Palanivelu [mailto:[hidden email]]
Hi Team, Currently we are facing issues with error handling. 1.
In no script mode: How can we show error message for each field? We need to show the error for the particular field on the top, is it possible? In the logs we are getting only the xforms-submit-error. So we are not able to distinguish between what went wrong. 2.
Error handling in xpl.
a.
We are using the email processor,If the smtp fails or if the mail is not sent then we need to show a our own error page to the user. Is it possible to catch these kind of errors, process it and routing it to the next page?.
b.
If the webservice fails, then also we need to show a page, from there he can go back to the form and resubmit it. For both the above conditions I don’t want to use the error.xpl provided by orbeon.
3.
In noscript mode the radio control is getting transformed to fieldset while rendering in the browser (orbeon-PE-3.9 version).(However in normal java script enabled mode it is working fine). Actual code: <xforms:select1 ref="complaint/contacttype" appearance="full" id="contacttype"> <xforms:label class="labelwrapper">Ik wil antwoord per</xforms:label> <xforms:alert>Required</xforms:alert> <xforms:item> <xforms:label>Email</xforms:label> <xforms:value>Email</xforms:value> </xforms:item> <xforms:item> <xforms:label>Telefoon</xforms:label> <xforms:value>Telefoon</xforms:value> </xforms:item>
</xforms:select1> Html renedered from the browser: <fieldset class="xforms-control xforms-select1 xforms-incremental xforms-select1-appearance-full" id="my-accordion$contacttype"> <legend class="xforms-label">Ik wil antwoord per</legend> <span class="xforms-selected"><label for="my-accordion$contacttype$$e0"> <input type="radio" checked="" value="h3OU3eWfoLs=" name="my-accordion$contacttype" id="my-accordion$contacttype$$e0">Email</label> </span> <span class="xforms-deselected"><label for="my-accordion$contacttype$$e1"> <input type="radio" value="BgLGydAAg36n/tw6m04IYQ==" name="my-accordion$contacttype" id="my-accordion$contacttype$$e1">Telefoon</label> </span>< /fieldset> I would require your help in solving these issues. Please do the needful asap. Thanks & Regards, Lingesh P Developer. Mahindra Satyam. DISCLAIMER: DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- 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 |
Administrator
|
In reply to this post by Lingesh_Palanivelu
> 1. In no script mode:
> > How can we show error message for each field? The error messages should appear in the error summary whenever there is a user action. Is that not what you see? If so, what do you see? > We need to show the error for the particular field on the top, is it > possible? You mean as opposed to under the field? > In the logs we are getting only the xforms-submit-error. So we are not able > to distinguish between what went wrong. ...when you do what? > 2. Error handling in xpl. > > a. We are using the email processor,If the smtp fails or if the mail > is not sent then we need to show a our own error page to the user. Is it > possible to catch these kind of errors, process it and routing it to the > next page?. > b. If the webservice fails, then also we need to show a page, from > there he can go back to the form and resubmit it. > > For both the above conditions I don’t want to use the error.xpl provided by > orbeon. http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-catching-and-System-Operations-td34750.html > 3. In noscript mode the radio control is getting transformed to > fieldset while rendering in the browser (orbeon-PE-3.9 version).(However in > normal java script enabled mode it is working fine). This had been requested to improve accessibility. I am not sure if this actually does help accessibility, but the Java code implements this behavior: https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/processor/handlers/XFormsSelect1Handler.java#L366 -Erik -- 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 |
Hi Eric, 1. I want to show either in the error summary or as an error message above each field(control) when that particular field is invalid during the xform submission.
è
I’m using xsd schema for validation, so it would be helpful if you me provide an option relating to that. 2. I’m using oxf:scope-serializer processor for saving a particular data in the session. And after processing I want to remove that particular key from the session. What is the best approach in doing this? <p:processor name="oxf:scope-serializer"> <p:input name="config"> <config> <key>CustomerNumberNJS</key> <scope>session</scope> </config> </p:input> <p:input name="data" href="#getuser-request"/> </p:processor> Regards, Lingesh P. Developer, Mahindra Satyam. -----Original Message----- > 1. In no script mode: > > How can we show error message for each field? The error messages should appear in the error summary whenever there is a user action. Is that not what you see? If so, what do you see? > We need to show the error for the particular field on the top, is it
> possible? You mean as opposed to under the field? > In the logs we are getting only the xforms-submit-error. So we are not
> able to distinguish between what went wrong. ...when you do what? > 2. Error handling in xpl. > > a. We are using the email processor,If the smtp fails or if the
> mail is not sent then we need to show a our own error page to the
> user. Is it possible to catch these kind of errors, process it and
> routing it to the next page?. > b. If the webservice fails, then also we need to show a page,
> from there he can go back to the form and resubmit it. > > For both the above conditions I don’t want to use the error.xpl
> provided by orbeon. You could try the oxf:exception-catcher processor: http://orbeon-forms-ops-users.24843.n4.nabble.com/Exception-catching-and-System-Operations-td34750.html > 3. In noscript mode the radio control is getting transformed to
> fieldset while rendering in the browser (orbeon-PE-3.9 > version).(However in normal java script enabled mode it is working fine). This had been requested to improve accessibility. I am not sure if this actually does help accessibility, but the Java code implements this behavior: https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/processor/handlers/XFormsSelect1Handler.java#L366 -Erik DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- 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 |
Administrator
|
> 1. I want to show either in the error summary or as an error message above
> each field(control) when that particular field is invalid during the xform > submission. > > > > è I’m using xsd schema for validation, so it would be helpful if you me > provide an option relating to that. Are you using Form Runner or building your form by hand? The reason I am asking is that with Form Runner, errors messages appear automatically under the field and in an error summary. > 2. I’m using oxf:scope-serializer processor for saving a particular data in > the session. And after processing I want to remove that particular key from > the session. What is the best approach in doing this? Mmh, the scope processors don't support actually removing an attribute from the session. What you could do is store a small document (just a root element) associated with key CustomerNumberNJS, or use Java code to remove it. -Erik -- 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 |
Hi Eric,
I'm using custom forms. I mean creating the forms manually. -Lingesh -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Tuesday, May 31, 2011 10:47 AM To: [hidden email] Subject: [ops-users] Re: RE: Re: Reg: Error Handling > 1. I want to show either in the error summary or as an error message > above each field(control) when that particular field is invalid during > the xform submission. > > > > è I'm using xsd schema for validation, so it would be helpful if you > me provide an option relating to that. Are you using Form Runner or building your form by hand? The reason I am asking is that with Form Runner, errors messages appear automatically under the field and in an error summary. > 2. I'm using oxf:scope-serializer processor for saving a particular > data in the session. And after processing I want to remove that > particular key from the session. What is the best approach in doing this? Mmh, the scope processors don't support actually removing an attribute from the session. What you could do is store a small document (just a root element) associated with key CustomerNumberNJS, or use Java code to remove it. -Erik DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- 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 |
Free forum by Nabble | Edit this page |