Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 week ago
Image does not show
Following does not show image on the screen:
myImage..jpg is placed under WebContent folder.
Embedded em = new Embedded("", new External Resource("./myImage.jpg");
em.setMimeType("image/jpg");
....
verticalLayout.addComponent(em)
I tried "myImage.jpg", "/myImage.jpg" and "./myImage.jpg". None of them work. What am I doing wrong?
Last updated on May, 8th 2012
created VAADIN/themes/raindeer/mythemes/images/myImage.jpg and then used ThemeResource. Image now shows
Last updated on
You cannot reply to this thread.