aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/annotations/StyleSheet.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/annotations/StyleSheet.java')
-rw-r--r--server/src/com/vaadin/annotations/StyleSheet.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/com/vaadin/annotations/StyleSheet.java b/server/src/com/vaadin/annotations/StyleSheet.java
index e1a9efd696..18e78f3530 100644
--- a/server/src/com/vaadin/annotations/StyleSheet.java
+++ b/server/src/com/vaadin/annotations/StyleSheet.java
@@ -28,6 +28,10 @@ import com.vaadin.server.ClientConnector;
* framework ensures the referenced style sheets are loaded before the init
* method for the corresponding client-side connector is invoked.
* <p>
+ * Absolute URLs including protocol and host are used as is on the client-side.
+ * Relative urls are mapped to APP/PUBLISHED/[url] which are by default served
+ * from the classpath relative to the class where the annotation is defined.
+ * <p>
* Example: {@code @StyleSheet( "http://host.com/file1.css", "file2.css"})} on
* the class com.example.MyConnector would load the file
* http://host.com/file1.css as is and file2.css from /com/example/file2.css on