Add image in notifier message

I’m triying to add image in a notifier message (with code html)

<img src="VAADIN/themes/naturamanagertheme/img/information.png"/>

But any image is showed when the app gets notifier.

Is it posible that path is not correct? In this case how to know which is the correct path?

Thnaks

Hey

It’s possible.


getWindow().showNotification(“”, “”,Notification.TYPE_HUMANIZED_MESSAGE, true);

That works for me. So you should have an incorrect path to your image

Hi Xavier,

I think that it’s better to use the Notification class:

Notification notification = new Notification("My Notification Caption", "My description message", Notification.TYPE_HUMANIZED_MESSAGE);
notification.setPosition(Notification.POSITION_CENTERED);
notification.setIcon(new ThemeResource("icons/info.png"));

getApplication().getMainWindow().showNotification(notification);

Hope this helps.

Javi