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
Post a Comment