Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The dynamically generated templates are available through the browser at {serverURL}/servoy-webclient/templates/default/{solutionName}/{formName}.[html/css] and  and viewing the source of the page. The templates can also be accessed via WEBDAV.

...

Any additions that are to end up in the Header section of the generated HMTL Markup of the Web Client can be placed within the <servoy:head><the <servoy:head></servoy:head> tagshead> tags.

Inside the HTML Templates Servoy uses long UUID's as ID's, for example "sv_5636ffed_4465_43f0_97bb_23a7d800942f", sometimes postfixed with "_wrapper": these ID's match the UUID of the objects as available through the SolutionModel's API.  At runtime however, these ID's are replaced with dynamically generated short ID's.

...

When modified, the templates need to be stored in the following location to be picked up by Servoy at runtime:

Code Block
\{servoyInstall}/application_server/server/webapps/ROOT/servoy-webclient/templates/\{subdir}/\{solutionName}/\{formName}.[html/css].

Creating multiple sets of customizations

The '{subdir}' part of the location is the 'default' directory by default, but it is possible to create another subdirectory in the  {servoyInstall}/application_server/server/webapps/ROOT/servoy-webclient/templates/ directory  directory for storing the modified templates and at runtime in the Solution tell Servoy to use this directory insetad of the default directory using the following code:

...

Besides the Form HTML and CSS, there is also the "servoy_web_client_default.css" template. This template contains the default CSS used for styling the forms and elements in a Web Client. Modifying this template will result in changing the overall look of all solution in the Web Client.

This css can be found at {serverURL}/servoy-webclient/templates/default/ and  and be changed via webdav

As an example to center all webclient solutions add:

...