Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342140 - Customizable error message box
Summary: Customizable error message box
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 284422
Blocks:
  Show dependency tree
 
Reported: 2011-04-07 07:38 EDT by Aleksandar Pavlov CLA
Modified: 2016-05-11 07:32 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandar Pavlov CLA 2011-04-07 07:38:20 EDT
The blank page that says:

> The server session is expired.
> Please click here to restart the session.

and similar pages like it reporting server errors.

One can provide some prettier HTML file to be shown to the user, instead
simple text.

Other frameworks like Struts and Spring support custom error page, it would be good to have in RAP too. An application has completeness then.
Comment 1 Ivan Furnadjiev CLA 2013-07-25 03:05:05 EDT
The blank page has been replaced with an error message box. Unfortunately, this box is still not customizable (theming).
Comment 2 Martin Ferlan CLA 2016-03-29 06:57:58 EDT
Any progress in this area.
Can you provide a workaround solution (if any exist) to adapt error message box (due to e.g. server timeout ) to my application theme ?
Comment 3 Ivan Furnadjiev CLA 2016-03-29 07:09:24 EDT
With change https://git.eclipse.org/r/#/c/68990/ we are now showing a dialog-like box for all error. What kind of customization (theming options) do you need?
Comment 4 Martin Ferlan CLA 2016-03-30 06:39:49 EDT
Background color of a error box (dialog), border and font is different that we use in our application.
All css attributes are hard-coded inside ErrorHandler.js
e.g
     _createErrorBoxTitleArea : function( parentElement ) {
      var element = document.createElement( "div" );
      var style = element.style;
      style.position = "absolute";
      style.left = "0px";
      style.top = "0px";
      style.width = "100%";
      style.height = "40px";
      style.padding = "10px";
      style.textAlign = "left";
      style.backgroundColor = "#406796";
      style.color = "white";
      style.fontSize = "14px";
      style.fontWeight = "bold";
      parentElement.appendChild( element );
      return element;
    }
Comment 5 Ivan Furnadjiev CLA 2016-04-06 09:44:06 EDT
Fixed with change https://git.eclipse.org/r/#/c/69803/
Now we have ErrorBox and ErrorBox-Titlebar CSS elements to style it.
Comment 6 Martin Ferlan CLA 2016-05-10 02:54:02 EDT
Customizing font is supported for ErrorBox-Titlebar, but not for ErrorBox.
Comment 7 Ivan Furnadjiev CLA 2016-05-11 07:32:41 EDT
We added font, color and background-color properties to the CSS ErrorBox element with change: https://git.eclipse.org/r/#/c/72470/