Web portal customization
Customizing the Brainwave web portal means modifying different elements of the look and feel, typically to match your company's graphical chart.
Customization can be done at different levels, ranging from simply changing the header logo and title to match your company logo and application, customizing the styles, fonts, colors and images of the portal framing and as far as changing the layout of the portal and even hiding some UI elements or adding your own.
This chapter explains how to carry out different types of customization for the common use cases.
There are 4 levels of customization , depending on the techniques and skills involved.
- Level 1- Configuration : via the project technical configuration wizard
- Level 2 - Css : technical configuration plus customizing one css file
- Level 3 - Css with resources : customizing css file , providing custom image files or font files
- Level 4 - Java : same as level 3 plus some simple java coding to modify the display layout
The table below gives an overview of the different changes that can be achieved at each customization level
Customization tasks / Customizable elements
Level 1 - Configuration
Level 2 - Css
Level 3 - Css with resources
Level 4 - Java
Out of scope
It is not possible to modify the behavior of standard UI elements of the portal framing. For example, you cannot change the items displayed in standard menus or modify the labels of dynamic buttons.
Similarly, it's not possible to modify the behavior or layout of widgets inside pages content. For example changing the behavior of a table widget.
A simple and automated customization of the login page is available since the 2016 R3 version where the colors and texts defined in the technical configuration are also used in the login page.
For instance, if the Web portal Display section of the technical configuration is defined as
then the Portal Login page will be
Part of the technical configuration automatically reused for the login page are:
- the logo
- the 'Browser title' and 'Header title' texts
- the 'Toolbar background' and 'Active menu categories' colors
Note also that this page is now localized as a function of the browser default language.
The following method applies if you are using version 2016 R2 or older or if your customization needs go beyond what is available in the simple method.
In the workspace of your studio locate the folder
/static. Download from this page the "login.zip" file available as attachement below, copy it into the "static" folder and unzip it.
It is required to perform modifications into the following two files for the desired changes to be taken into account:
- The "web.xml" file into Webapps to indicate where the customised files are located
- The attached ".html" files of the login.zip archive for the actual customisation of the login page
Once all following modifications are performed, if the project is embedded in the webportal at a former export, it is necessary to re-export the web portal and modify the generated "web.xml" file while deploying the new webportal.
Web.xml file configuration
/static/static paths below are not typos:
- The first one is the servlet for static content
- The second one is the static folder in the project
The "Web.xml" file is located into the "Webapps" folder of your web server instance under
<Portal Web Application Name>/WEB-INF/web.xml. Add the following block in the
You should then modify the
<url-pattern> parameter in the
<security-constraint> tag. Below, you will find a modified version of the default generated web.xml file:
You also have to modify the
<form-login-error> parameters in the
<login-config> tag. You will find below a modified version of the default generated "web.xml" file:
It is necessary to verify that the value of the webportal parameter "static.directories" attribute contains the "static" directory. However, this should be the default value. The webportal parameters are located in a file named
config.properties under the
webportal folder of your project for 2014 versions (of the product) the web portal tab of the technical configuration for 2015 and later versions.
login.html file configuration
The actual customisation of the login pages are done in the two files
login_err.html. These are the two login pages available in the web portal:
login.htmlis the initial login page
login_err.htmlis the login page after an authentication error
These pages should also be edited to bring the desired changes. Default
login_err.html pages are included in the attached login.zip file.
You can generate the webportal including your new customized web.xml by renaming the file in custom-web.xml and placing it in your project directory /webportal.