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 month ago
load an image still not succesfull
hello,
can anyone help and tell me how I should do if i want to load an image from vaadin resource?
I have read on the link https://vaadin.com/de/book/-/page/components.embedded.html and https://vaadin.com/de/book/-/page/advanced.resources.html
but it is still not successfull.
Let's say i made a new folder named "images" inside the "docroot" folder of my project. (see screenshot)
and in my vaadin portlet i wrote this code
VerticalLayout view = new VerticalLayout();
Embedded e = new Embedded("Image" , new ExternalResource("C:/Documents and Settings/workspace-ClinicalTrials/plugins_sdk/portlets/MyProject/docroot/WEB-INF/images/bodyEnrollment.jpg"));
view.addComponent(e);
But it is not working.
Can somepone please help me?
Last updated on Jun, 22nd 2012
You cannot reply to this thread.