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 -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -