I have been several days with a problem I am not able to solve.
I am triying to make my own web component using a polymer 2 template on vaadin 13.
It is a basic template, it only shows a combobox, the problem is that the combobox is not populated with values.
I am newbie with that so the solution can be very stupid. Thanks in advance.
My code:
‘’’
''' And the java class: ''' @Tag("hello-world") @HtmlImport("hello-world.html") public class HelloWorld extends PolymerTemplate {
@Id("name")
private ComboBox<String> name;
/**
* Creates the hello world template.
*/
public HelloWorld() {
name = new ComboBox<String>();
name.setItems("Ana","Luis");
}
‘’’