Vaadin : How to change favicon?

Cataclysm picture Cataclysm · Sep 4, 2014 · Viewed 8.7k times · Source

How can I change favicon of my pages in Vaadin ? I would like to change favicon of my pages but I have no idea where is the place to change it ? Has somebody experience on it ?

Answer

Greg Ballot picture Greg Ballot · Sep 4, 2014

First, create a theme directory: /WebContent/VAADIN/themes/mynewtheme

Then, put your custom favicon.ico in this directory. You also need to set theme property in your application :

public class MyNewApplication extends Application {

    @Override
    public void init() {
        ...
        ...
        setTheme("mynewtheme");
    }
}