Hi,
according to the explanation on: http://wiki.orbeon.com/forms/doc/developer-guide/error-dialog , I tried editing the general error-dialog in our orbeon instance ( a 3.9.1 PE). However, changing the error-dialog.xml file in the config folder had no effect at all. I tried placing our custom version in the apps/fr folder (we only use the form runner app), but this resulted in a total freeze of the application: buttons were no longer clickable when this file was present. We really need to change this, because we need to change the link to the homepage, but I can't find where to edit it so that changes will be reflected in form runner. Could you tell me where I can make the changes for form runner? I'd rather not go to my last resort: turning the error dialog off completely (as described in http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Errors ). What would happen in case of errors when I turn the dialog off? Sincerely, Koen Vanderkimpen Research/Recherche/Onderzoek Connect: "there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" (Phil Karlton et al) -- 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
|
Koen,
It should work! Placing your own version under WEB-INF/resources/apps/fr/error-dialog.xml should definitely override the default after a container restart. For reference the latest Form Runner error dialog is here, and still under the same path:
If you turn it off, it just won''t show and there won't be any user feedback. But there is a JavaScript hook you can use, which is documented right there with the oxf.xforms.show-error-dialog property.
-Erik
On Mon, Oct 8, 2012 at 5:55 AM, <[hidden email]> wrote: Hi, -- 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 Erik,
Thanks for the tip about restarting, I had only done webapp reloads before. I tried again with a minor change and I saw the change. However, what I really want to do is remove the two divs which control the showing and hiding of "details". I never want to show details. But when I remove those, orbeon freezes up as explained before, even with container restart. It's the following I tried to remove: <div class="xforms-error-panel-details-hidden"> <p> <a class="xforms-error-panel-show-details"> <img src="/ops/images/xforms/section-closed.png" alt="Show Details"/> <span>Show details</span> </a> </p> </div> <div class="xforms-error-panel-details-shown xforms-disabled"> <p> <a class="xforms-error-panel-hide-details"> <img src="/ops/images/xforms/section-opened.png" alt="Hide Details"/> <span>Hide details</span> </a> </p> <div class="xforms-error-panel-details"/> </div> Also, is there an easy way to make the dialog language-dependant? bye, Koen Vanderkimpen Research/Recherche/Onderzoek Connect: "there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" (Phil Karlton et al) From: Erik Bruchez <[hidden email]> To: [hidden email] Date: 09/10/2012 07:11 Subject: [ops-users] Re: error dialog configuration Sent by: [hidden email] Koen, It should work! Placing your own version under WEB-INF/resources/apps/fr/error-dialog.xml should definitely override the default after a container restart. For reference the latest Form Runner error dialog is here, and still under the same path: https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/error-dialog.xml If you turn it off, it just won''t show and there won't be any user feedback. But there is a JavaScript hook you can use, which is documented right there with the oxf.xforms.show-error-dialog property. -Erik On Mon, Oct 8, 2012 at 5:55 AM, <Koen.Vanderkimpen@...> wrote: Hi, according to the explanation on: http://wiki.orbeon.com/forms/doc/developer-guide/error-dialog , I tried editing the general error-dialog in our orbeon instance ( a 3.9.1 PE). However, changing the error-dialog.xml file in the config folder had no effect at all. I tried placing our custom version in the apps/fr folder (we only use the form runner app), but this resulted in a total freeze of the application: buttons were no longer clickable when this file was present. We really need to change this, because we need to change the link to the homepage, but I can't find where to edit it so that changes will be reflected in form runner. Could you tell me where I can make the changes for form runner? I'd rather not go to my last resort: turning the error dialog off completely (as described in http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Errors ). What would happen in case of errors when I turn the dialog off? Sincerely, Koen Vanderkimpen Research/Recherche/Onderzoek Connect: "there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" (Phil Karlton et al) -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] 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 |
Administrator
|
I fear that's the JavaScript is not resilient to the absence of those divs. Maybe you can add a style="display: none" to hide them? Ideally, you could use the new mechanism which prevents any error to reach the client. But that's not in 3.9.1.
-Erik
On Tue, Oct 9, 2012 at 12:22 AM, <[hidden email]> wrote: Hi 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 |
In reply to this post by koenvdk
Hi. I'm having a similar problem.
That is to say i've placed a custom error-dialog.xml file in WEB-INF/resources/config/ AND WEB-INF/resources/apps/app-name/ as well as done a tomcat restart without seeing the change. Specifically my problem relates to errors generated by the max-upload-size property which i've set in properties-local.xml <property as="xs:integer" processor-name="oxf:request" name="max-upload-size" value="2097152"/> Still i'm getting "this request was rejected because size..." and the default dialog. |
Administrator
|
Mmh, that sounds like a different issue to the dialog one. -Erik
On Thu, Oct 18, 2012 at 4:17 AM, throwaway123 <[hidden email]> wrote: > Hi. I'm having a similar problem. > That is to say i've placed a custom error-dialog.xml file in > WEB-INF/resources/config/ AND WEB-INF/resources/apps/app-name/ > as well as done a tomcat restart without seeing the change. > > Specifically my problem relates to errors generated by the max-upload-size > property which i've set in properties-local.xml > <property as="xs:integer" processor-name="oxf:request" > name="max-upload-size" value="2097152"/> > > Still i'm getting > "this request was rejected because size..." > and the default dialog. > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/error-dialog-configuration-tp4655798p4655867.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 |
Free forum by Nabble | Edit this page |