How do I customize the error page

Our IT department has adopted a policy that requires a standard look and feel for all error pages encountered in any web application. To this end I need to be able to modify the error page that shows up on the browser when an unexpected error is encountered or a validation error is sent to a new page.
How can I modify this page? Is there a template for it, and if so where?
Any help is greatly appreciated,
Adam Cumming

Hello Bhavin,
I have already started looking at this links (you copied twice Marc Lancaster's page, instead of Roel Hartmans's, which is actually : http://roelhartman.blogspot.com/2009/09/transform-ora-xxxx-messages-into.html)
I'm focused on Marc Lancaster's solution (Friendly Exception Messages), which is also interesting because it covers Ajax manipulation inside Apex (i'm using Apex 2.1).
But it seems that the apex.ajax.ondemand(...) line doesn't do anything to my application. Here is the code of this line :
var lRequest = new apex.ajax.ondemand('test', function(){     
                                                      var l_s = p.readyState;
                                                    if(l_s == 1||l_s == 2||l_s == 3){
                                        }  else if(l_s == 4){
                                        gReturn = p.responseText;
                                        $s('ajax-drop',gReturn); }
                                        else{return false;}
                                          );Because that's the first time I'm trying Ajax, I don't see what could be silly (I just copied the code from Marc's example).
Here is the application process, called 'test' :
begin
  htp.p('Hello !');
end;Thanks a lot.
Dovik

Similar Messages

  • How do I customize the error pages in Firefox 24?

    I'd like to customize the HTLM/CSS/JavaScript of all the Firefox 24 error pages, i.e. the network connectivity lost, DNS and other standard error pages.

    Hello ekan,
    This can be done, but you're going to need to get pretty dirty to get it done. Ready?
    First, learn about userContent.css:
    http://kb.mozillazine.org/UserContent.css
    http://kb.mozillazine.org/Profile_folder
    Now, the easiest way to learn about the elements on the error page is to go to the source. So, go to the chrome folder in the Firefox program folder, usually C:\Program Files\Mozilla Firefox\chrome in Windows Explorer. Find the file called classic.jar and copy that somewhere else. Rename classic.jar to a .zip file and extract it, preferably to a folder called classic at whatever location you are at. Then, open the classic folder and navigate to ...\classic\skin\classic\global and find the file called netError.css.
    Open the netError.css file in Wordpad (Notepad doesn't seem to work for me because then the lines all run together). See all the code that starts with the # symbol? Those are the things you can easily change. Copy all the #ELEMENT code into your userContent.css file.
    Now you can start making changes to see what you like. I would make small changes at a time to see if it works the way you want. After each change, you need to close and restart Fx. Here's one to get you going:
    CODE: SELECT ALL
    #errorPageContainer {
    -moz-border-radius: 0px !important;
    background-color: red !important;
    That should make the box that surrounds the error message be red with square corners instead of white with a rounded corner border. Remember that before every semi-colon, you need to put !important or the change won't do anything.

  • How do I customize the login page?

    Hi, floks:
    How do I customize the login page?
    Can I just create a page with login portlet in it? what do I put as on Success URL,
    if I choose to go to the home page?
    thanks.
    null

    You can create a page and add a login portlet to it.Make it accesible to public.
    change the default page of the user "public" to the page you have created.(by default it is WELCOME)
    if there is an error in the user name or the password entered the portal still navigates to the default single-sign on page.(You have not changed the sign on page still)
    To change this page look at on-line help.
    search with string "customize" in online help
    null

  • How to customize the error pages in iPlanet IAS 6.0?

     

    Hello ekan,
    This can be done, but you're going to need to get pretty dirty to get it done. Ready?
    First, learn about userContent.css:
    http://kb.mozillazine.org/UserContent.css
    http://kb.mozillazine.org/Profile_folder
    Now, the easiest way to learn about the elements on the error page is to go to the source. So, go to the chrome folder in the Firefox program folder, usually C:\Program Files\Mozilla Firefox\chrome in Windows Explorer. Find the file called classic.jar and copy that somewhere else. Rename classic.jar to a .zip file and extract it, preferably to a folder called classic at whatever location you are at. Then, open the classic folder and navigate to ...\classic\skin\classic\global and find the file called netError.css.
    Open the netError.css file in Wordpad (Notepad doesn't seem to work for me because then the lines all run together). See all the code that starts with the # symbol? Those are the things you can easily change. Copy all the #ELEMENT code into your userContent.css file.
    Now you can start making changes to see what you like. I would make small changes at a time to see if it works the way you want. After each change, you need to close and restart Fx. Here's one to get you going:
    CODE: SELECT ALL
    #errorPageContainer {
    -moz-border-radius: 0px !important;
    background-color: red !important;
    That should make the box that surrounds the error message be red with square corners instead of white with a rounded corner border. Remember that before every semi-colon, you need to put !important or the change won't do anything.

  • How can I customize the error message UIX STRUTS ADF

    Hi dear forum:
    I need to customize the error message?
    Error
    Id - JBO-27014: Attribute Id in AppModule.BackupsView1 is required
    Fecha - JBO-27014: Attribute Fecha in AppModule.BackupsView1 is required
    AplId - JBO-27014: Attribute AplId in AppModule.BackupsView1 is required

    Repost:
    I need to customize the error message when I insert a new row with wrong values in ADF STRUTS UIX, where can I changue the default values for the message?

  • How do I customize the index page?

    I can't seem to find out how to edit the default index page (ie content, banner, etc.) without it losing the theme or the css file, which i guess is somehow linked to it? The page points to "collaboration/css/serverhome_static.css" which doesn't seem to exist?
    Can you guys help me out?
    Maybe point me to the right files? or just flat out tell me what to do would be nice :P
    thanks

    Hi,
    The web pages produced for the groups are dynamic and under the control of WebServer. You can see the requests and responses in Console -> LOG FILES -> /Library/Logs -> WebServer which accesses the folder /usr/share/.
    If you want to change something like the banner on the groups listing page you can:
    Change banner.jpg in usr/share/collaboration/css/serverhome/img to the banner image of your choice (ensuring the size (length x height) is appropriate). Be sure to set Permissions on any files added to
    Owner: root -rw, Group: wheel -r, Others: -r.
    Be aware that /usr/share may be changed during a Apple software update. For user specific changes immune to updates the place to modify is at /Library/Application Support/Apple/WikiServer. That said I made changes to my banner display in /usr/share as described above in 10.5.0 that haven't been disturbed by 10.5.1 - 10.5.5.
    HTH,
    Harry

  • How do I customize the Firefox 4 error page?

    how do I customize the error message... the one with "server not found" and "try again"

    FF4 combined a bunch of files into [https://developer.mozilla.org/en/About_omni.jar omni.jar] -- unzip it to edit (it's a zip file, unzip to its own folder, don't just do it inside of the firefox folder). It's located different places depending on your OS; in Ubuntu, it's usually in /usr/local/firefox/ or /usr/share/firefox.
    Depends on what you want to edit in the error page, but here are two possibilities inside omni.jar:
    * omni.jar-unzipped/chrome/en-US/locale/en-US/global/netError.dtd
    * omni.jar-unzipped/chrome/toolkit/global/netError.xhtml
    You'll need to redo any changes any time you upgrade Firefox. Back everything up too, just in case!

  • Customising the error page

    The situation is:
    A portal page is configured that requires login before accessing this
    page. Oracle portal logon server PL/SQL API is used to verify the user
    id, password and privilege. Thus, whenever the user dosen't have enough
    privilege to access this page, the logon server will raise an exception
    and redirect to an error page.
    Now the question is,
    can we customise the error page to fit our needs or can we change the
    error redirect parameter somewhere in Oracle portal.
    Regards
    Mahantesh

    Actually, when a user has insufficient privileges to access a particular page, or area of the product, it is the partner application (in this case the Portal) which delivers the error page -- not the Login Server.
    Unfortunately, the answer to your question is, no. There is no configurable way to customize the error page.

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • How to customize the error messages in web analysis reports

    Does anyone know how to customize the error messages that web analysis shows ,
    I want to customize the below error message with a custom error message
    "Document does not exist or no authorization to open document.Error occurred while loading document"
    Does anyone know how to do this ?

    Rajesh,
    you may want to check these links
    How to the Change the Application Stopped Message
    How to Change the Dispatcher Running, No Server Connected Message
    http://help.sap.com/saphelp_nw70/helpdata/en/65/18fc3f9ec4e669e10000000a155106/frameset.htm
    Thanks
    Bala Duvvuri

  • How to determine if coming from the Error Page?

    Version 4.1.1.00.23
    Hello,
    I have a manually created tabbed form with a collection.
    I've added a validation and set the error message to display on the Error Page to preserve the information entered into the form.
    One of the Select Lists is a cascading list. That list does not populate when returning from the Error Page.  The parent list is populated and does show the value selected before the error was thrown. It's just the list that is based on the parent that isn't populated.
    If I refresh the page the Select Lists are reset and I can access the values normally.
    So, what I think I want to do (and I'm not sure here) is to refresh the page when returning from the Error Page.
    How can I determine if I'm coming back from the Error Page?
    Is there a better solution?
    Please let me know if this isn't clear or there are questions.
    Thanks,
    Joe

    Hello,
    I'm hoping someone can help me with this.
    Thanks,
    Joe

  • How to customize the landing page of Power BI application in a Office 365 Site?

    Hi,
    While we navigate to the Power BI application by clicking the icon from the Site Contents of a Office 365 site, everything is loaded in it.
    But we would like to customize / edit the page, so that all users will see the contents we put in.
    We are SCA / having Full Control on the site but we have limited options in the Power BI application.
    Please provide pointers on how to Edit / Customize the application.
    Thanks,
    Thanan.

    It looks as of now Power BI application on Office 365 doesn't supports any customization.
    Thanks,
    Sagar K 
    (Blog: http://datamazik.blogspot.in/)

  • How do I customize the forum retrieve page?

    How do I customize the forum retrieve page? Thanks in advance.

    Hi,
    All available forum pages/layouts can be access via site manager -> module template -> forum layouts.
    Kind regards,
    -Sidney

  • How do i customize the "tile" on the first page of Wiki Server 4 on OS X Server?

    How do i customize the "tile" on the first page of Wiki Server 4 on OS X Server?
    The title says "OS X Server" and i want it to say something else... How can i do that?

    Ok... i did some digging around... and struck gold.
    The digging part is not for the "faint of heart" since the Terminal is your best friend and some coding knowledge is involved. Suffice to say my trip in Wiki Server 4 land led me through Ruby on Rails code. I was surprised to find that i'm able to read ruby code, and i don't know Ruby at all. After looking through Model Views and Controllers i figured out the solution was simpler than i anticipated.
    To modify the title on the first page you need to edit a .strings file. You need to use the download version (not the mac app store app) of TextWrangler or some other editor that allows Authenticated Saves (save files as other users). Make sure the Wiki service is off... the slider in the server app is off.
    The location of the file depends on your language locale that you use:
    /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/locale s/en.lproj
    where "en" can be either de, es, fr, it, ja, ko, nl, zh_CN, zh_TW depending on your wiki language.
    First()you need to right click on the file and "Get Info" and adjust the permissions temporarily for "Everyone" to "Read and Write".
    Open the file in TextWrangler and find the key general.os_x_server and under it you can modify the string "OS X Server" to anything you want "My own company Wiki".
    Save()the file.
    Second()you need to right click on the file and "Get Info" and adjust the permissions temporarily for "Everyone" back to just "Read".
    Move()the slider in the Server App to On again for the wiki.
    Enjoy!!!

  • How can I customize each content page separately, so that if I change one chapter, it won't affect the next?

    how can I customize each content page separately, so that if I change one chapter, it won't affect the next?

    I don't think you can do what you want to do, sorry.
    See: Publishing With iBooks Author
    http://shop.oreilly.com/product/0636920025597.do

Maybe you are looking for