Check that you have the right package for ContentMode; in Vaadin 7 it’s import com.vaadin.shared.ui.label.ContentMode; and in Vaadin 8 it’s import com.vaadin.shared.ui.ContentMode; (since more components than Label use it).
Olli Tietäväinen:
Check that you have the right package for ContentMode; in Vaadin 7 it’s import com.vaadin.shared.ui.label.ContentMode; and in Vaadin 8 it’s import com.vaadin.shared.ui.ContentMode; (since more components than Label use it).
Thx Olli,
I do have the “import com.vaadin.shared.ui.ContentMode;” in my class??
Olli Tietäväinen:
Any component from a .v7 package comes from the Compatibility Package. You can’t mix them with non-compatibility classes in all cases.
ok so just to make sure what you are saying is that since the TextField is v7, it won’t work with newer V 8 class of the PhoneFormatter class?
If yes then is there a way around this because the exact version of the PhoneFormatter class was used in Vaadin 7.7.15 and it worked fine.
That linked add-on seems to be for Vaadin 8 (and some later versions, depending on release), so it should work with Vaadin 8 TextFields and not TextFields from the Compatibility package, from what I understand.
Olli Tietäväinen:
That linked add-on seems to be for Vaadin 8 (and some later versions, depending on release), so it should work with Vaadin 8 TextFields and not TextFields from the Compatibility package, from what I understand.