Hi, when a I copy this exampe code from Vaadin 7 Book
main.addComponent(new Label(“Here we have an image <img src="” +
this.getRelativeLocation(labelimage) +
“"/> within text.”,
Label.ContentMode.XHTML));
It give 2 errors:
First: The method getRelativeLocation(ClassResource) is undefined for the type MyVaadinUI
and
ContentMode cannot be resolved or is not a field
I m using Maven Archetype Application 7.0.1. The class extend from UI, and the imports of com.vaadin.ui.
Thanks in advance!