vaadinvaadin7

Vaadin : How to change favicon?


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 ?


Solution

  • 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");
        }
    }