Community
Participate
Working Groups
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.
The blank page has been replaced with an error message box. Unfortunately, this box is still not customizable (theming).
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 ?
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?
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; }
Fixed with change https://git.eclipse.org/r/#/c/69803/ Now we have ErrorBox and ErrorBox-Titlebar CSS elements to style it.
Customizing font is supported for ErrorBox-Titlebar, but not for ErrorBox.
We added font, color and background-color properties to the CSS ErrorBox element with change: https://git.eclipse.org/r/#/c/72470/