Both annotations are repeatable and you can add multiple annotations for both to the component.
Another way of adding imports are the
addHtmlImport(String url) and
The functionality is the same as for the annotations.
For every class that imports dependencies, import order is guaranteed for dependencies of the same type only. No guarantees are given regarding numerous classes' dependencies' import order, same as no guarantees are given on import order of dependencies of not the same type.
In this case,
If you want to enforce an order between dependencies of a different type, you can add html import with imports in it.
For example, if
You can place your static resources in any folder inside your WAR file except
/VAADIN which is reserved for framework internal use.
VaadinServlet handles static resource requests if you have mapped it to
Otherwise, the servlet container will take care of static resource requests.
Relative URLs are resolved using the page base URI, which is always set to match the servlet URL.
If you are using a servlet path for the servlet, e.g.
You can use the special protocol
When you configure an element, e.g setting the
There is a possibility to define which dependencies are loaded first, refer to Ways of importing the dependencies for details.