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, 2 weeks ago
Image resource has a URL but does not /GET
Hi,
I have a Vaadin.ui.CustomComponent inhereted class. In the constructor of the class I am initializing and defining a layout and as part of a layout I have a button and image. The button gets placed in the layout correctly but the image does not. The image code looks like
final ClassResource cr = new ClassResource(null, "/img/module1.png");
final Image image = new Image("", cr);
layout.addComponent(image);
When I fire up my vaadin web application I have this request url for the resource : http://localhost:8181/main/APP/connector/1/16/source/module1.png
But the image does not show. What could be the causes for this.
Last updated on
You cannot reply to this thread.