How to load a file on the server side

Hi,

The theme resource path is relative to the path of the current theme. The theme path is [tt]
VAADIN/themes/themename
[/tt] under the web application content. When deployed, the complete URL to the [tt]
styles.css
[/tt] file of a theme would be, for example, [tt]
http://localhost:8080/myproject/VAADIN/themes/mytheme/styles.css
[/tt].

You can use relative paths to point to resources in other themes.

The ThemeResource is probably best documented in
its book section
and
its example
. It’s also mentioned in the API documentation for
setIcon()
.