You have a few different options here. The easiest would be to use @Id binding. That means you create a member variable in your Java PolymerTemplate class, bind it to an element in the template with a matching id and use it like this:
@Id("slReason")
private Select<String> reasonSelect;
public MyPolymerTemplate() {
reasonSelect.setItems("The applicant meets all the requirements", "Gross income exceed indigent policy limit");
reasonSelect.addValueChangeListener(event -> {
System.out.println("Selected item: " + event.getValue());
// do something with selected item on the server side
});
}
Note that if you use @Id binding, you’ll need to initialize the values of the component in Java code instead of in the template.