java - Vaadin 8 Checkbox Group select() doesn't work for array -


i have code creates checkboxgroup (based on vaadin 8 sampler):

public void setpossibleanswers(list <string> answeroptions) {           answercheckboxes = new checkboxgroup<>("", answersoptions);       } 

i'm using method select given items in group:

public void setanswer(string answer) {     string[] answers = answer.split(",");     answercheckboxes.select(answers); } 

but code selects first element of array. need select elements. body know mistake?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -