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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -